Differences between revisions 35 and 46 (spanning 11 versions)
Revision 35 as of 2007-07-20 03:28:17
Size: 3262
Editor: c-98-202-21-76
Comment:
Revision 46 as of 2008-01-16 19:45:51
Size: 4112
Editor: abuehl
Comment: Perforce: +p4hg
Deletions are marked like this. Additions are marked like this.
Line 2: Line 2:

Your first option should probably be the ConvertExtension recently bundled with mercurial. It supports branches, incremental imports, and a few other nice features, and is maintained by the Mercurial authors. It currently only understands CVS, subversion, Darcs and git. Otherwise, the following tools may be useful.
Line 11: Line 13:
== Bitkeeper ==

Because of the threatening behavior of Bitmover, no Bitkeeper conversion tools have been made publically available.
See GenericConversion for details on building your own repository conversion tool.
Line 20: Line 17:
 * ["convert-repo"] - the development version of Mercurial includes a CVS converter  * ["ConvertExtension"] - the convert extension supports CVS
Line 23: Line 20:
 * [http://hg.beekhof.net/hg/cvs-import hg-cvs-import] (need info)  * [http://hg.beekhof.net/hg/cvs-import hg-cvs-import] - InstructionsforHgcvsimport

You can also convert from Mercurial to CVS:

 * CvscommitExtension -
(need info)
Line 27: Line 28:
A sample Darcs conversion script is available in the contrib/ directory of the Mercurial source. The ConvertExtension supports Darcs.
Line 29: Line 30:
For a more accurate conversion, which preserves Darcs information on renames and some information on tags, use ["Tailor"]. An older sample Darcs conversion script is available in the contrib/ directory of the Mercurial source.

Also see ["Tailor"].
Line 35: Line 38:
== SVN == == Subversion ==

The ConvertExtension included in Mercurial 0.9.5 can import Subversion trees. It uses the Subversion API, so it can speak any Subversion repository access protocol.
Line 42: Line 47:
 * http://ajayu.memi.umss.edu.bo/viborita/weblog/svn2hg.py-convertir-repositorio-subversion-mercurial - simple script that keeps subversion history, download every rev info from svn server, doesn't work with svndump. (use the download link, not copy&paste).  * http://ajayu.memi.umss.edu.bo/viborita/weblog/svn2hg.py-convertir-repositorio-subversion-mercurial - simple script that downloads every rev info from svn server. Works on subdirectories of the repo. Handles branches, tags, etc. inefficiently (does not tell hg that they are different from any other diff). Requires pysvn, mercurial source. Use the download link, not copy&paste.
 * [http://hg.rosdahl.net/yasvn2hg yasvn2hg] - yet another SVN to HG converter. Handles branches, tags and file copies/renames. Calls the svn client for each changeset, so it's not very fast. Converts whole repository only. Direct links: [http://hg.rosdahl.net/yasvn2hg/raw-file/tip/yasvn2hg yasvn2hg program], [http://hg.rosdahl.net/yasvn2hg/raw-file/tip/README README file].
Line 44: Line 50:
 * [http://hg.rosdahl.net/yasvn2hg yasvn2hg] - yet another SVN to HG converter. Handles branches, tags and file copies/renames. Calls the svn client for each changeset, so it's not very fast. Direct links: [http://hg.rosdahl.net/yasvn2hg/raw-file/tip/yasvn2hg yasvn2hg program], [http://hg.rosdahl.net/yasvn2hg/raw-file/tip/README README file].
Line 47: Line 52:
 * [http://cheeseshop.python.org/pypi/hgsvn hgsvn] allows you to work on SVN checkouts using Mercurial (mirroring all SVN history in a local Mercurial repository on which you can also do local development). It is useful for managing private branches, submitting patches to project maintainers, have fast local operations instead of slow remote "svn up/log/blame", etc.  * [http://cheeseshop.python.org/pypi/hgsvn hgsvn] allows you to work on SVN checkouts using Mercurial (mirroring all SVN history in a local Mercurial repository on which you can also do local development). It is useful for managing private branches, submitting patches to project maintainers, have fast local operations instead of slow remote "svn up/log/blame", etc.  Also useful as "one-shot" conversion tool if you just remove all the svn directories ("find . -name '.svn' |xargs rm -r") afterwards.
Line 58: Line 63:
["p4hg"]

== Bitkeeper ==

Because of the threatening behavior of Larry McVoldemort of Bitmover, no Bitkeeper conversion tools have been made publically available. See GenericConversion for details on building your own repository conversion tool.

TableOfContents

Your first option should probably be the ConvertExtension recently bundled with mercurial. It supports branches, incremental imports, and a few other nice features, and is maintained by the Mercurial authors. It currently only understands CVS, subversion, Darcs and git. Otherwise, the following tools may be useful.

Arch / TLA / Baz 1.5

Tools for Arch conversion can be found at ArchConversion.

Bazaar?

  • ["Tailor"] - a generic conversion tool.

CVS

Multiple convertors exist for converting from CVS to Mercurial:

You can also convert from Mercurial to CVS:

Darcs

The ConvertExtension supports Darcs.

An older sample Darcs conversion script is available in the contrib/ directory of the Mercurial source.

Also see ["Tailor"].

Git

See GitConversion (incremental).

Subversion

The ConvertExtension included in Mercurial 0.9.5 can import Subversion trees. It uses the Subversion API, so it can speak any Subversion repository access protocol.

Converters that work on local repositories or data (faster, if this is an option for you):

Converters that work on remote repositories:

Syncing tools:

  • [http://cheeseshop.python.org/pypi/hgsvn hgsvn] allows you to work on SVN checkouts using Mercurial (mirroring all SVN history in a local Mercurial repository on which you can also do local development). It is useful for managing private branches, submitting patches to project maintainers, have fast local operations instead of slow remote "svn up/log/blame", etc. Also useful as "one-shot" conversion tool if you just remove all the svn directories ("find . -name '.svn' |xargs rm -r") afterwards.

  • SubversionToMercurialSync (like hgsvn, but more primitive)

Perforce

[http://hg.omnifarious.org/~hopper/p4_to_hg p4_to_hg]

This utility can actually keep two repositories in sync.

Currently, it's slapped together and built to serve my particular needs, but it could probably be modified into something more general. It currently makes no attempt to do anything with Perforce's ability to track branches or the movement of changesets from branch to branch. -- EricHopper 2005-09-27 06:31:03

["p4hg"]

Bitkeeper

Because of the threatening behavior of Larry McVoldemort of Bitmover, no Bitkeeper conversion tools have been made publically available. See GenericConversion for details on building your own repository conversion tool.

Other systems

["Tailor"] is a conversion tool that can do simple conversions from a variety of systems. See GenericConversion for details on building your own repository conversion tool.

RepositoryConversion (last edited 2020-07-05 13:34:51 by MarcinKasperski)