git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: migrating to git: keep subversion revision numbers (as tags?)

From
Jon Seymour <jon.seymour@gmail.com>
Date
Jan 30, 2010, 23:35 UTC
Message-ID
<2cfc40321001301535s2f886629m8c05cbaefeb81372@mail.gmail.com>
In-Reply-To
<20100130230829.GA3544@comppasch2>

On Sun, Jan 31, 2010 at 10:08 AM, fkater@googlemail.com <fkater@googlemail.com> wrote:

Show 17 quoted lines
> 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.
Previous: fkater@googlemail.comNext: Jacob Helwig
Message 2 of 4 in “migrating to git: keep subversion revision numbers (as tags?)”
  1. fkater@googlemail.comJan 30, 2010
  2. Jon SeymourJan 30, 2010
  3. Jacob HelwigJan 30, 2010
  4. Ilari LiusvaaraJan 31, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.