From d89b42a63128c0686d2a1f8691fc9649260bcb5c Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Fri, 30 May 2008 13:44:07 +0200 Subject: [PATCH] Clarify where 'HEAD' branch name comes from Signed-off-by: Rocco Rutte --- hg2git.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hg2git.py b/hg2git.py index 93e080f..6916c53 100755 --- a/hg2git.py +++ b/hg2git.py @@ -8,7 +8,7 @@ import re import os import sys -# git branch for hg's default 'HEAD' branch +# default git branch name cfg_master='master' # silly regex to see if user field has email address user_re=re.compile('([^<]+) (<[^>]+>)$') @@ -45,7 +45,8 @@ def fixup_user(user,authors): return '%s %s' % (name,mail) def get_branch(name): - # HEAD may be from CVS imports into hg + # 'HEAD' is the result of a bug in mutt's cvs->hg conversion, + # other CVS imports may need it, too if name=='HEAD' or name=='default' or name=='': name=cfg_master return name.replace(' ', '_') -- 2.11.4.GIT