git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* migrating to git: keep subversion revision numbers (as tags?)
@ 2010-01-30 23:08 fkater
  2010-01-30 23:35 ` Jon Seymour
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: fkater @ 2010-01-30 23:08 UTC (permalink / raw)
  To: git

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?

Thank You
 Felix

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: migrating to git: keep subversion revision numbers (as tags?)
  2010-01-30 23:08 migrating to git: keep subversion revision numbers (as tags?) fkater
@ 2010-01-30 23:35 ` Jon Seymour
  2010-01-30 23:36 ` Jacob Helwig
  2010-01-31  8:04 ` Ilari Liusvaara
  2 siblings, 0 replies; 4+ messages in thread
From: Jon Seymour @ 2010-01-30 23:35 UTC (permalink / raw)
  To: fkater@googlemail.com; +Cc: git

On Sun, Jan 31, 2010 at 10:08 AM, fkater@googlemail.com
<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?
>

As I understand it, git-svn stores the SVN revision number in the git
commit message and git-svn log allows queries based on the SVN
revision number. I think you will find having one tag for each SVN
revision number is an abuse of the git tag facility - it makes it much
harder to use for its intended function in git.

jon.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: migrating to git: keep subversion revision numbers (as tags?)
  2010-01-30 23:08 migrating to git: keep subversion revision numbers (as tags?) fkater
  2010-01-30 23:35 ` Jon Seymour
@ 2010-01-30 23:36 ` Jacob Helwig
  2010-01-31  8:04 ` Ilari Liusvaara
  2 siblings, 0 replies; 4+ messages in thread
From: Jacob Helwig @ 2010-01-30 23:36 UTC (permalink / raw)
  To: fkater@googlemail.com; +Cc: git

On Sat, Jan 30, 2010 at 15:08, fkater@googlemail.com
<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?
>
> Thank You
>  Felix
>

There's not really any need to tag every revision with the SVN
revision number.  If you use svn-all-fast-export, or git-svn to do the
SVN -> Git conversion, then the SVN revision numbers will end up as
part of the commit message when it is in Git.

-Jacob

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: migrating to git: keep subversion revision numbers (as tags?)
  2010-01-30 23:08 migrating to git: keep subversion revision numbers (as tags?) fkater
  2010-01-30 23:35 ` Jon Seymour
  2010-01-30 23:36 ` Jacob Helwig
@ 2010-01-31  8:04 ` Ilari Liusvaara
  2 siblings, 0 replies; 4+ messages in thread
From: Ilari Liusvaara @ 2010-01-31  8:04 UTC (permalink / raw)
  To: fkater@googlemail.com; +Cc: git

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-01-31  8:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-30 23:08 migrating to git: keep subversion revision numbers (as tags?) fkater
2010-01-30 23:35 ` Jon Seymour
2010-01-30 23:36 ` Jacob Helwig
2010-01-31  8:04 ` Ilari Liusvaara

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).