hg2git: set proper default branch

So that cfg_master is picked up in get_branch().

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Felipe Contreras
2023-03-09 18:08:31 -06:00
parent 18577f559d
commit 7886016978

View File

@@ -95,7 +95,7 @@ def get_changeset(ui,repo,revision,authors={},encoding=''):
user=user.decode(encoding).encode('utf8')
desc=desc.decode(encoding).encode('utf8')
tz=b"%+03d%02d" % (-timezone // 3600, ((-timezone % 3600) // 60))
branch=get_branch(extra.get(b'branch', b'master'))
branch=get_branch(extra.get(b'branch', b''))
return (node,manifest,fixup_user(user,authors),(time,tz),files,desc,branch,extra)
def mangle_key(key):