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 <pdmef@gmx.net>
This commit is contained in:
Rocco Rutte
2007-10-22 09:44:12 +02:00
parent 4cc1d7cf17
commit fb5cd150a6

View File

@@ -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