svnmercurialhgsubversion

How do you get hgsubversion working?


The online documentation for hgsubversion sucks, IMO (I hate to say that). I've been following the instructions in the Quick Start.

What have I done?

  1. I installed Mercurial:

    D:\repos\experimental>hg --version Mercurial Distributed SCM (version 1.6)

  2. I installed TortoiseHg to match the Mercurial version.

  3. I downloaded the hgsubversion repository:

    D:\devapps> hg clone http://bitbucket.org/durin42/hgsubversion

  4. I modified my .hgrc as follows:

    [extensions] hgsubversion=D:\devapps\hgsubversion\hgsubversion

    D:\repos\experimental>hg help hgsubversion hgsubversion extension - integration with Subversion repositories

    hgsubversion is an extension for Mercurial that allows it to act as a Subversion client, offering fast, incremental and bidirectional synchronisation.

  5. I installed PySVN for Python 2.5.

  6. I tried to clone an SVN repository:

    ...> hg clone http://path/to/repository/ repository-hg

And I got the following result:

...
abort: Subversion 1.5.0 or later required, but no bindings were found!

WTF? There's nothing in the instructions I'm following that tells you how to install this. Any help is greatly appreciated!! (I just want a way to work without SVN as much as possible - PLEASE HELP!).


Solution

  • As described in my blog post, you need to do the following to get this working:

    Now the TortoiseHg binary will be used when you invoke 'hg' from the command line and the hgsubversion extension will work as advertised!

    I hope this helps someone!