threads / discuss / 41438

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

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

## tl;dr

One message between Feb 18, 2016 and Feb 18, 2016.

replies: 0people: 1as markdown or json

Juergen Kosel· Feb 18, 2016, 20:56 UTC · lore
-----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-----

← back to recent threads