From d9bb3271a4b739456f825979597480d650526ed2 Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Tue, 13 Mar 2007 15:27:29 +0000 Subject: [PATCH] Add a note about hg's unnamed branches and multiple heads Signed-off-by: Rocco Rutte --- hg2git.py | 2 +- hg2git.txt | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/hg2git.py b/hg2git.py index acb3d4a..690acda 100644 --- a/hg2git.py +++ b/hg2git.py @@ -77,7 +77,7 @@ def gitmode(x): def wr(msg=''): print msg - #map(lambda x: sys.stderr.write('\t[%s]\n' % x),msg.split('\n')) + map(lambda x: sys.stderr.write('\t[%s]\n' % x),msg.split('\n')) def checkpoint(count): count=count+1 diff --git a/hg2git.txt b/hg2git.txt index 13a2035..f4da258 100644 --- a/hg2git.txt +++ b/hg2git.txt @@ -15,12 +15,16 @@ Using it is quite simple for a mercurial repository : mkdir repo-git # or whatever cd repo-git git init - hg2git.sh + hg2git.sh -r Incremental imports to track hg repos is supported, too. -Notes -===== +Notes/Limitations +================= + +hg2git supports multiple branches but only named branches with exaclty +one head each. Otherwise commits to the tip of these heads within branch +will get flattened into merge commits. As each git-fast-import run creates a new pack file, it may be required to repack the repository quite often for incremental imports (especially -- 2.11.4.GIT