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

Re: Help debugging git-svn

From
Edmundo Carmona Antoranz <eantoranz@gmail.com>
Date
Jan 9, 2016, 03:39 UTC
Message-ID
<CAOc6etZ5Ne+1SMsZ-7psJTihkHfm2ES1TWBRfjssfiOprQvp_Q@mail.gmail.com>
In-Reply-To
<CAOc6etanJZub-rwqT-45WpKsutVe_wkDHbPS_RorxXLGHOE9tA@mail.gmail.com>
Hi!

On Fri, Dec 18, 2015 at 10:31 PM, Edmundo Carmona Antoranz <eantoranz@gmail.com> wrote:

Show 22 quoted lines
> On Fri, Dec 18, 2015 at 11:28 AM, Edmundo Carmona Antoranz
> <eantoranz@gmail.com> wrote:
>> Ok.... I came up with another idea to avoid having to deal with the
>> old svn history (I'm having no problems fetching/dcommitting with my
>> current repo). I already have the branches I work with, the thing is
>> that the revisions I fetched before I started using the svn authors
>> file have nasty IDs instead of human names. I though that I could
>> create a script to rewrite the whole history of the project adjusting
>> the usernames to real names (I'll take care of the details, no problem
>> there... just found out about filter-branch, could work for what I'm
>> thinking of). My question would be in the direction of rebuilding
>> git-svn metainfo once I'm done so that I can continue fetching from
>> svn as if nothing had happened. I checked the documentation in
>> git-scm.com but didn't find the details about it. Is there a
>> straight-forward document that explains how the git-svn metadata files
>> are built?
>>
>> Thanks in advance.
>
> .rev_map files appear to be simple enough. I'll have fun with them a
> little bit. Will let you know how it goes later (don't hold your
> breath.... it might take a while).

I was able to rewrite git-svn's history and I'm fetching/dcommitting as usual using the new branches. I posted the tool I developed for the task in github [1]. The readme explains how to use it.

Cheers!
[1] https://github.com/eantoranz/git_svn_rewrite
Previous: Edmundo Carmona Antoranz
Message 6 of 6 in “Help debugging git-svn”
  1. Edmundo Carmona AntoranzDec 16, 2015
  2. Eric WongDec 16, 2015
  3. Edmundo Carmona AntoranzDec 16, 2015
  4. Edmundo Carmona AntoranzDec 18, 2015
  5. Edmundo Carmona AntoranzDec 19, 2015
  6. Edmundo Carmona AntoranzJan 9, 2016

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.