[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git
Subject:    Re: migrating to git: keep subversion revision numbers (as tags?)
From:       Ilari Liusvaara <ilari.liusvaara () elisanet ! fi>
Date:       2010-01-31 8:04:50
Message-ID: 20100131080450.GB30470 () Knoppix
[Download RAW message or body]

On Sun, Jan 31, 2010 at 12:08:29AM +0100, fkater@googlemail.com wrote:
> Hi,
> 
> I would like to completely migrate from subversion to git
> (and NOT have subversion enabled anymore). However, I need
> to be able to lookup the old subversion revision numbers
> later from the git repository. The default seems to be
> though, that they are replaced by git sha-1 keys.
> 
> It would be completely o.k. here to use git tags for all
> those subversion revision numbers (if possible), so, to
> create a tag for each subversion revision. However, I have
> neither seen any option in git nor found a script which does
> that upon cloning (converting) a subversion repo into a git
> repo.
> 
> Is there a way to do so?

Another way would be to have SVN version numbers in commit
message (--grep option works fine, if those version numbers have 
fixed format). 

The version numbers git-svn outputs are ugly, but filter-branch
can be pretty easily rewrite those into more pretty form,
something like

"This was SVN r123" or "SVN-version: r123".

(adjust to taste)

-Ilari
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic