svn -> hg conversion
Bill Barry
after.fallout at gmail.com
Fri Mar 13 16:11:17 CDT 2009
I could be wrong, but I am almost certain that you can use some svnadmin
kung-fu to fix this.
svnadmin dump ~/repo > repo.dump
(or something like this, I don't remember the syntax exactly)
the dump will contain every revision to which you can then write a
script to change the lines that say "Node-path: somefilename": to be
"Node-path: trunk/somefilename" and you will have to manually change the
revision where the files were actually moved
Then you can import the dump into a new repo with:
svnadmin load ~/newrepo <repo.dump
Then you should be able to convert all the changesets to hg after you
have fixed history for the svn revisions
Hans Meine wrote:
> On Freitag 06 März 2009, Alpár Jüttner wrote:
>
>> I have a trouble with converting an SVN repository to mercurial.
>>
>> It has a standard trunk/branches/tags layout, but the name of the
>> project has been changed, thus the root directory was renamed with an
>> 'svn mv' command halfway in the history.
>>
>
> Sorry, also no clue here. I have similar problems, for instance I have a repo
> with nearly 200 revisions, but I only get 10 of them converted. Obviously,
> this is due to retroactively adding the trunk/branches/tags layout (it was
> converted from cvs in the past), but even with
> convert --config convert.svn.trunk=""
> I only get two more revisions.
>
> Obviously, this is also "svn mv" related, but I do not see how I could further
> debug or even fix this. :-(
>
> (This is a more or less public project, so I could upload the svn and/or hg
> repos if there's interest.)
>
> Ciao, / / .o.
> /--/ ..o
> / / ANS ooo
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20090313/17a916a3/attachment.htm
More information about the Mercurial
mailing list