# hgsubversion

Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

# hgsubversion

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.

## Installation

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 1.3 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 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 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.

# Recent activity

Bryan O'Sullivan pushed 11 commits to bos/hgsubversion

bdc9b21 - setup: add layouts subdir
e95f4de - layouts: refactor buildmeta layout reading and writing
b2d89ba - layouts: pull out code for detecting layout from subversion

Commits by Bryan O'Sullivan were pushed to bos/hgsubversion

c8cb06e - buildmeta: do not contact svn unless needed We read uuid and subdir information from local metadata if available. Only if they do not exist do ...

Commits by Bryan O'Sullivan were pushed to bos/hgsubversion

9065dc7 - buildmeta: do not contact svn unless needed We read uuid and subdir information from local metadata if available. Only if they do not exist do ...
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.