{"thread":{"id":"22456","subject":"migrating to git: keep subversion revision numbers (as tags?)","startedAt":"2010-01-30T23:08:29Z","lastAt":"2010-01-31T08:04:50Z","messageCount":4,"participants":["fkater@googlemail.com","Jon Seymour","Jacob Helwig","Ilari Liusvaara"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"133156","messageId":"20100130230829.GA3544@comppasch2","threadId":"22456","inReplyTo":null,"subject":"migrating to git: keep subversion revision numbers (as tags?)","fromName":"fkater@googlemail.com","fromEmail":"fkater@googlemail.com","sentAt":"2010-01-30T23:08:29Z","receivedAt":"2010-01-30T23:08:29Z","isPatch":false,"sender":{"key":"fkater@googlemail.com","avatar":null},"body":"Hi,\n\nI would like to completely migrate from subversion to git\n(and NOT have subversion enabled anymore). However, I need\nto be able to lookup the old subversion revision numbers\nlater from the git repository. The default seems to be\nthough, that they are replaced by git sha-1 keys.\n\nIt would be completely o.k. here to use git tags for all\nthose subversion revision numbers (if possible), so, to\ncreate a tag for each subversion revision. However, I have\nneither seen any option in git nor found a script which does\nthat upon cloning (converting) a subversion repo into a git\nrepo.\n\nIs there a way to do so?\n\nThank You\n Felix\n"},{"id":"133158","messageId":"2cfc40321001301535s2f886629m8c05cbaefeb81372@mail.gmail.com","threadId":"22456","inReplyTo":"20100130230829.GA3544@comppasch2","subject":"Re: migrating to git: keep subversion revision numbers (as tags?)","fromName":"Jon Seymour","fromEmail":"jon.seymour@gmail.com","sentAt":"2010-01-30T23:35:22Z","receivedAt":"2010-01-30T23:35:22Z","isPatch":false,"sender":{"key":"jon.seymour@gmail.com","avatar":"https://avatars.githubusercontent.com/u/207131?v=4"},"body":"On Sun, Jan 31, 2010 at 10:08 AM, fkater@googlemail.com\n<fkater@googlemail.com> wrote:\n> Hi,\n>\n> I would like to completely migrate from subversion to git\n> (and NOT have subversion enabled anymore). However, I need\n> to be able to lookup the old subversion revision numbers\n> later from the git repository. The default seems to be\n> though, that they are replaced by git sha-1 keys.\n>\n> It would be completely o.k. here to use git tags for all\n> those subversion revision numbers (if possible), so, to\n> create a tag for each subversion revision. However, I have\n> neither seen any option in git nor found a script which does\n> that upon cloning (converting) a subversion repo into a git\n> repo.\n>\n> Is there a way to do so?\n>\n\nAs I understand it, git-svn stores the SVN revision number in the git\ncommit message and git-svn log allows queries based on the SVN\nrevision number. I think you will find having one tag for each SVN\nrevision number is an abuse of the git tag facility - it makes it much\nharder to use for its intended function in git.\n\njon.\n"},{"id":"133159","messageId":"8c9a061001301536g1a990881qa27ba681ee90c6eb@mail.gmail.com","threadId":"22456","inReplyTo":"20100130230829.GA3544@comppasch2","subject":"Re: migrating to git: keep subversion revision numbers (as tags?)","fromName":"Jacob Helwig","fromEmail":"jacob.helwig@gmail.com","sentAt":"2010-01-30T23:36:14Z","receivedAt":"2010-01-30T23:36:14Z","isPatch":false,"sender":{"key":"jacob.helwig@gmail.com","avatar":"https://avatars.githubusercontent.com/u/14557?v=4"},"body":"On Sat, Jan 30, 2010 at 15:08, fkater@googlemail.com\n<fkater@googlemail.com> wrote:\n> Hi,\n>\n> I would like to completely migrate from subversion to git\n> (and NOT have subversion enabled anymore). However, I need\n> to be able to lookup the old subversion revision numbers\n> later from the git repository. The default seems to be\n> though, that they are replaced by git sha-1 keys.\n>\n> It would be completely o.k. here to use git tags for all\n> those subversion revision numbers (if possible), so, to\n> create a tag for each subversion revision. However, I have\n> neither seen any option in git nor found a script which does\n> that upon cloning (converting) a subversion repo into a git\n> repo.\n>\n> Is there a way to do so?\n>\n> Thank You\n>  Felix\n>\n\nThere's not really any need to tag every revision with the SVN\nrevision number.  If you use svn-all-fast-export, or git-svn to do the\nSVN -> Git conversion, then the SVN revision numbers will end up as\npart of the commit message when it is in Git.\n\n-Jacob\n"},{"id":"133173","messageId":"20100131080450.GB30470@Knoppix","threadId":"22456","inReplyTo":"20100130230829.GA3544@comppasch2","subject":"Re: migrating to git: keep subversion revision numbers (as tags?)","fromName":"Ilari Liusvaara","fromEmail":"ilari.liusvaara@elisanet.fi","sentAt":"2010-01-31T08:04:50Z","receivedAt":"2010-01-31T08:04:50Z","isPatch":false,"sender":{"key":"ilari.liusvaara@elisanet.fi","avatar":null},"body":"On Sun, Jan 31, 2010 at 12:08:29AM +0100, fkater@googlemail.com wrote:\n> Hi,\n> \n> I would like to completely migrate from subversion to git\n> (and NOT have subversion enabled anymore). However, I need\n> to be able to lookup the old subversion revision numbers\n> later from the git repository. The default seems to be\n> though, that they are replaced by git sha-1 keys.\n> \n> It would be completely o.k. here to use git tags for all\n> those subversion revision numbers (if possible), so, to\n> create a tag for each subversion revision. However, I have\n> neither seen any option in git nor found a script which does\n> that upon cloning (converting) a subversion repo into a git\n> repo.\n> \n> Is there a way to do so?\n\nAnother way would be to have SVN version numbers in commit\nmessage (--grep option works fine, if those version numbers have \nfixed format). \n\nThe version numbers git-svn outputs are ugly, but filter-branch\ncan be pretty easily rewrite those into more pretty form,\nsomething like\n\n\"This was SVN r123\" or \"SVN-version: r123\".\n\n(adjust to taste)\n\n-Ilari\n"}]}