[PATCH] Updated convert-repo script
Alexis S. L. Carvalho
alexis at cecm.usp.br
Tue May 2 15:13:55 CDT 2006
Thus spake Sébastien Pierre:
> diff -r 0ce3cd330996 -r ca7df5efc7c1 contrib/convert-repo
> --- a/contrib/convert-repo Fri Apr 28 12:38:11 2006 +0200
> +++ b/contrib/convert-repo Mon May 01 11:54:09 2006 -0400
> @@ -1,24 +1,28 @@
> #!/usr/bin/env python
> -#
> -# This is a generalized framework for converting between SCM
> -# repository formats.
> -#
> -# In its current form, it's hardcoded to convert incrementally between
> -# git and Mercurial.
> -#
> -# To use, you must first import the first git version into Mercurial,
> -# and establish a mapping between the git commit hash and the hash in
> -# Mercurial for that version. This mapping is kept in a simple text
> -# file with lines like so:
This comment is not true anymore - convert-repo is capable of performing
the whole conversion, from the beginning, by itself[1]. The user just
has to "hg init" the destination repository.
Alexis
[1]
changeset: 692:695dd9a491dad2a63fe7770149da096c194bf0da
user: mpm at selenic.com
date: Wed Jul 13 01:53:27 2005 -0800
files: contrib/convert-repo
description:
convert-repo: deal with packed git and other fixes
call out to git-cat-file directly to deal with packed files
use git-diff-tree --root to handle import of first commit
quiet some dirstate warnings
fix parent logic in commit
whitespace bits
topological sort fix
manifest hash: 2943af0168dd2f5e85bba6515fd08687e264863f
More information about the Mercurial
mailing list