git/list[1] front-page[2] threads[3] people[4] search[5] about
 

How to merge branches with git-svn without loosing svn-properties

From
JKJuergen Kosel <juergen.kosel@gmx.de>
Date
Feb 18, 2016, 20:56 UTC
Message-ID
<56C62FEF.6000504@gmx.de>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,

could you please give me some recommendations how to merge two branches in a git-svn repository, without loosing svn-properties?

As the git-svn man-page says:
> We ignore all SVN properties except svn:executable. Any unhandled
> properties are logged to $GIT_DIR/svn/<refname>/unhandled.log

Therefore I expect the following: If branch A is merged by git into branch B any modified property (except svn:executable and svn:mergeinfo) is not merged by git automatically. If I know that in branch A some property was set (e.g. svn-eol-style or svn:keywords), than I could re-add the property manually by calling

	git svn propset

But usually I do not know. In this case it would be nice to have some script which iterates over all files and compares the properties for each file in the 2 branches. Is there already such a tool?

Greetings
	Juergen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iD8DBQFWxi/vYZbcPghIM9IRApUpAJ9TFKagQUPdSx3QQZn5Cygb40G2TwCgkrWz 7+28Llb0IAo97gfNTSYIdG4= =W2u9 -----END PGP SIGNATURE-----

Message 1 of 1 in “How to merge branches with git-svn without loosing svn-properties”
  1. Juergen KoselFeb 18, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.