Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2006-12-19 06:43:52
Size: 533
Editor: mpm
Comment:
Revision 4 as of 2008-12-05 18:40:25
Size: 76
Editor: GeorgBrandl
Comment: Update to hg convert.
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
Mercurial includes a Git conversion script in contrib/convert-repo. The ConvertExtension handles Git repositories.
Line 3: Line 3:
To use, run:

{{{
convert-repo <git-dir> <hg-dir> <mapfile>
}}}

(don't forget to create the <hg-dir> repository beforehand)

The <mapfile> is a simple text file that maps a git commit hash to
the hash in Mercurial for that version, like so:

<git hash> <mercurial hash>

If the file doesn't exist, it's automatically created. It's updated
on each commit copied, so convert-repo can be interrupted and can
be run repeatedly to copy new commits.
----
CategoryConversion

The ConvertExtension handles Git repositories.


CategoryConversion

GitConversion (last edited 2009-08-24 16:26:58 by MadsKiilerich)