1. Augie Fackler
  2. hgsubversion


hgsubversion /

Filename Size Date modified Message
213 B
hgignore: also ignore tox environments directory
3.1 KB
Added signature for changeset 051a517b473b
1.1 KB
Added tag 1.8.7 for changeset 051a517b473b
18.0 KB
COPYING: include license (GPL == v2)
126 B
MANIFEST.in: correctly include invalid_utf8.tar.gz in source bundle
947 B
Makefile: set HGRCPATH to protects us from broken environments
2.5 KB
drop support for pre-2.0 versions of Mercurial
4.9 KB
setup: also ignore stderr lines about obsolete when guessing version
403 B
tox: give up on Mercurial older than 3.2


hgsubversion is an extension for Mercurial that allows using Mercurial as a Subversion client.

At this point, hgsubversion is usable by users reasonably familiar with Mercurial as a VCS. It's not recommended to dive into hgsubversion as an introduction to Mercurial, since hgsubversion "bends the rules" a little and violates some of the typical assumptions of early Mercurial users.


You need to have either have Subversion 1.5 (or later) installed along with either Subvertpy 0.7.4 (or later) or the Subversion SWIG Python bindings. You need Mercurial 2.0 or later.

If you are unfamiliar with installing Mercurial extensions, please see the UsingExtensions page in the Mercurial wiki. Look at the example for specifying an absolute path near the bottom of the page. You want to give the path to the top level of your clone of this repository.

Before using hgsubversion, I strongly encourage you to run the automated tests. Just use nose if you have it (or easy_install nose if you want it), or use python tests/run.py to run the suite with the conventional test runner. Note that because I use nose, there's a lot of stdout spew in the tests right now. The important part is that all the tests pass.

You can check that hgsubversion is installed and properly activated using the following command:

$ hg version --svn
Mercurial Distributed SCM (version ...)

Copyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others
This is free software; see the source for copying conditions. There is NO

hgsubversion: ...
Subversion: ...
bindings: Subvertpy ...

If your bindings are listed as SWIG, please consider installing Subvertpy.

Further Reading

More information on how to use hgsubversion is available from within Mercurial in the subversion help topic. To view it, use:

$ hg help subversion

The Restructured Text source for this topic is also available in the file hgsubverson/help/subversion.rst.