{"thread":{"id":"9344","subject":"Why does git-svn dcommit rewrite the log messages?","startedAt":"2007-08-01T21:19:19Z","lastAt":"2007-08-03T01:44:46Z","messageCount":3,"participants":["Patrick Doyle","Sam Vilain"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"49350","messageId":"e2a1d0aa0708011419m1f6cb323ge9e93680147a298@mail.gmail.com","threadId":"9344","inReplyTo":null,"subject":"Why does git-svn dcommit rewrite the log messages?","fromName":"Patrick Doyle","fromEmail":"wpdster@gmail.com","sentAt":"2007-08-01T21:19:19Z","receivedAt":"2007-08-01T21:19:19Z","isPatch":false,"sender":{"key":"wpdster@gmail.com","avatar":null},"body":"I see that it appends text to the log messages with the SVN repository\nrevision and ID.  Does it do that because:\n\n1) That's the _only_ way to keep git & svn in sync\nIf so, then I guess I'm out of luck.  But it seems (to my\ninexperienced eye) to make branching impossible in git -- as soon as I\ndo a \"git-svn dcommit\", I lose the commit on which my branch was\noriginally based.  Or, am I missing something?\n\n2) That was the simplest way to keep them in sync at the time git-svn\nwas written and it hasn't bothered anybody enough to go back and fix\nit.\nIf so, I'd be glad to see what I could do to fix it.  I would also\nappreciate any pointers folks might care to give to get me started.\n\n--wpd\n"},{"id":"49507","messageId":"46B23415.8030008@vilain.net","threadId":"9344","inReplyTo":"e2a1d0aa0708011419m1f6cb323ge9e93680147a298@mail.gmail.com","subject":"Re: Why does git-svn dcommit rewrite the log messages?","fromName":"Sam Vilain","fromEmail":"sam@vilain.net","sentAt":"2007-08-02T19:44:21Z","receivedAt":"2007-08-02T19:44:21Z","isPatch":false,"sender":{"key":"sam@vilain.net","avatar":"https://gravatar.com/avatar/8fc840ca854dbf6f7065b4335e3b934951c1dca3b11db688e95e471901f8f4a8?d=mp&s=160"},"body":"Patrick Doyle wrote:\n> I see that it appends text to the log messages with the SVN repository\n> revision and ID.  Does it do that because:\n>\n> 1) That's the _only_ way to keep git & svn in sync\n> If so, then I guess I'm out of luck.  But it seems (to my\n> inexperienced eye) to make branching impossible in git -- as soon as I\n> do a \"git-svn dcommit\", I lose the commit on which my branch was\n> originally based.  Or, am I missing something?\n>\n> 2) That was the simplest way to keep them in sync at the time git-svn\n> was written and it hasn't bothered anybody enough to go back and fix\n> it.\n> If so, I'd be glad to see what I could do to fix it.  I would also\n> appreciate any pointers folks might care to give to get me started.\n>   \n\nPrimarily it's so that the person who pushed via dcommit and people who\nsync via git-svn fetch get the same commit ID (assuming they are both\nusing the same authors map).\n\nIt might be possible to store the extra information needed to recreate\nexactly the original git commit in SVN revision properties, but this\nwould need to be implemented once and basically not changed after that.\n\nYou can disable this behaviour, but you'll end up with duplicate commits.\n\nSam.\n"},{"id":"49531","messageId":"e2a1d0aa0708021844y251273a4q9af44e066cca2b42@mail.gmail.com","threadId":"9344","inReplyTo":"46B23415.8030008@vilain.net","subject":"Re: Why does git-svn dcommit rewrite the log messages?","fromName":"Patrick Doyle","fromEmail":"wpdster@gmail.com","sentAt":"2007-08-03T01:44:46Z","receivedAt":"2007-08-03T01:44:46Z","isPatch":false,"sender":{"key":"wpdster@gmail.com","avatar":null},"body":"> Primarily it's so that the person who pushed via dcommit and people who\n> sync via git-svn fetch get the same commit ID (assuming they are both\n> using the same authors map).\n>\n> It might be possible to store the extra information needed to recreate\n> exactly the original git commit in SVN revision properties, but this\n> would need to be implemented once and basically not changed after that.\n>\n> You can disable this behaviour, but you'll end up with duplicate commits.\n>\n> Sam.\nThanks Sam,\nNow I see the noMetadata option.  I'll give that try and see how much\ntrouble I get myself in.\n\nAs I was thinking about this some more, I started wondering if perhaps\nthe information could be stored in a .git-svnid file, that was\nversioned on the subversion server as well as in the local git\nrepository.\n\nI'll have to think through the implications of your explanation in the\nmean time.\n\n--wpd\n"}]}