svn -> hg conversion
Bill Barry
after.fallout at gmail.com
Wed Mar 11 22:33:47 CDT 2009
Alpár Jüttner wrote:
> Hi,
>
> 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.
>
> Any idea how to convert a repository like this?
I am pretty sure you can get rid of the project name change problem with
an svnadmin dump, a sed script, then svnadmin load (into a new
repository) then an hg convert.
We looked into doing this for our repository, but I gave up after a
couple of days (our svn repo has 36000 revisions and we moved stuff
around 8 times in the history of the projects it contains and the layout
never was the standard layout); also hg convert and hgsvn weren't as
good as they are now (hgsvn wasn't even a project at the time). We ended
up just leaving the svn repo hanging around and copied the latest
revisions of our stuff over to hg.
More information about the Mercurial
mailing list