From fb5cd150a65820f471e20844ba4838a0242ad49f Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Mon, 22 Oct 2007 09:44:12 +0200 Subject: [PATCH] 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 --- hg2git.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.11.4.GIT