Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you get hgsubversion working?

Tags:

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!).

like image 872
les2 Avatar asked Jul 23 '10 18:07

les2


2 Answers

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

  • Remove the /path/to/Mercurial from your PATH variable
  • leave only /path/to/TortoiseHg on the PATH

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!

like image 144
les2 Avatar answered Oct 21 '22 06:10

les2


After digging same problem, I've found a good instruction on bitbucket, which was a solution for correct installing of python bindings. https://bitbucket.org/tortoisehg/thg/wiki/libsvn

like image 20
AdvanTiSS Avatar answered Oct 21 '22 06:10

AdvanTiSS