开发者

How do you get hgsubversion working?

开发者 https://www.devze.com 2023-01-08 09:45 出处:网络
The online documentation for hgsubversion sucks, IMO (I hate to say that). I\'ve been following the instructions in the Quick Start.

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


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!


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


I don't actually know much about Windows, but my understanding is that TortoiseHG should bundle everything you need. They have some instructions that it looks like you already followed, but maybe you can ask on their mailing list for some help? They're pretty much the best ones to follow up with.

The SWIG bindings are currently required, but we're close to having support for some other bindings (not PySVN, subvertpy) that should be less hard to install. I can't make any solid claims about how easy/hard those will be on Windows since I have no way of testing that.


I had the exact same problem and just gave up. The major problem is that there are no precompiled win32 Python SWIG bindings for recent versions of SVN.

You may want to see if the hgsvn tools will do what you need: https://www.mercurial-scm.org/wiki/WorkingWithSubversion#With_hgsvn

It's not a proper extenstion, just a bundle of three tools: hgimportsvn, hgpullsvn, and hgpushsvn


Looks like Python can't find the Subversion bindings.

If you can, try to install TortoiseHg, which bundles them. Maybe because I had it installed, I had no problems at all using hgsubversion.

0

精彩评论

暂无评论...
验证码 换一张
取 消