How to migrate/convert from SVN to Mercurial (hg) on windows

后端 未结 9 1487
南旧
南旧 2020-12-04 05:30

I\'m looking for a tool to migrate a couple of SVN repositories to Mercurial, with history, labels and so on.

I\'m using TortoiseHg (Windows x32), so ConvertExtensio

9条回答
  •  暖寄归人
    2020-12-04 05:49

    I just converted a remote SVN repo with HTTP auth to a Mercurial repo, and let me tell you, there's not a lot of documentation on how to do this. I had to download the Mercurial source and install it stand-alone, using the source package, that way the SVN bindings will work the right way.

    I installed it like:

    python setup.py install
    

    Which worked just fine on my Server 2003 box. I can now convert an SVN repo the correct way, by doing something like this:

    python c:\python26\scripts\hg convert 
    

    The documentation for ConvertExtension on the Mercurial site isn't terribly clear, but it does say this:

    There's no way to install the Subversion bindings into [Mercurial's] built-in Python library. So you'll need to use a Mercurial installed on top of a stand-alone Python

    So now I just use the stand-alone version for converting, and TortoiseHg for actual VCS work.

提交回复
热议问题