A Scalable, User-Friendly Source Control System.
Go to file
Augie Fackler a071605551 Fix a bug in replay convert where replaced files that couldn't use replay
would sometimes end up having no content.
2008-12-03 22:51:03 -06:00
svnwrap SubversionRepo: work around ra.get_files() not releasing input buffer 2008-12-02 20:13:13 -06:00
tests hg_delta_editor: do not assume branches are copied from trunk by default 2008-11-29 11:25:01 -06:00
__init__.py Clean up help text, document subcommands. 2008-11-20 22:03:30 -06:00
.hgignore Ignore coverage information. 2008-11-06 09:23:49 -06:00
diff_cmd.py Add a diff command that behaves kind of like svn diff. 2008-11-21 16:15:23 -06:00
fetch_command.py hg_delta_editor: fix update of stray files in branches/ 2008-11-29 11:25:01 -06:00
hg_delta_editor.py Fix a bug in replay convert where replaced files that couldn't use replay 2008-12-03 22:51:03 -06:00
push_cmd.py Refactored outgoing_revisions into util where it really belongs. 2008-11-21 16:11:24 -06:00
README README: We now only require hg 1.1, rather than a prerelease version. 2008-12-02 20:10:11 -06:00
svncommand.py Add a diff command that behaves kind of like svn diff. 2008-11-21 16:15:23 -06:00
util.py Refactored outgoing_revisions into util where it really belongs. 2008-11-21 16:11:24 -06:00
utility_commands.py Cleanups based on pyflakes output. 2008-11-21 16:21:19 -06:00

-*-restructuredtext-*-

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

Right now it is *not* ready for production use. You should only be using this if 
you're ready to hack on it, and go diving into the internals of Mercurial and/or 
Subversion.

Installation
------------
You need to have Subversion installed with the SWIG Python bindings from Subversion 1.5 or later.
You need Mercurial 1.1 or later.

.. _mercurial: http://selenic.com/repo/hg
.. _mercurial-stable: http://selenic.com/repo/hg-stable
.. _crew: http://hg.intevation.org/mercurial/crew
.. _crew-stable: http://hg.intevation.org/mercurial/crew-stable

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.

.. _UsingExtensions: http://www.selenic.com/mercurial/wiki/index.cgi/UsingExtensions

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.

.. _nose: http://code.google.com/p/python-nose/

Basic Use
-----------
Get a new clone of an svn server::

 $ hg svnclone <svn URI> [destination]

Real example::

 $ hg svnclone http://python-nose.googlecode.com/svn nose-hg

Note, you should pull from the root subversion directory, not specific folders (such as trunk).

Pull new revisions into an already-converted repo::

 $ hg svn pull

For more information, see 'hg help svn' while in a converted repo.