From: Rocco Rutte Date: Mon, 22 Oct 2007 07:44:12 +0000 (+0200) Subject: hg2git.py: Map 'HEAD', 'default' and '' hg branches to 'master' in git X-Git-Url: http://crossforests.com/gitweb?a=commitdiff_plain;h=fb5cd150a65820f471e20844ba4838a0242ad49f;p=python%2Ffast-export.git hg2git.py: Map 'HEAD', 'default' and '' hg branches to 'master' in git Also add a note where HEAD is comming from. Signed-off-by: Rocco Rutte --- diff --git a/hg2git.py b/hg2git.py index 1f631e7..aa6ad70 100755 --- a/hg2git.py +++ b/hg2git.py @@ -44,7 +44,8 @@ def fixup_user(user,authors): return '%s %s' % (name,mail) def get_branch(name): - if name=='HEAD': + # HEAD may be from CVS imports into hg + if name=='HEAD' or name=='default' or name=='': name=cfg_master return name