Merge branch 'PR/223'

Closes #223
This commit is contained in:
Frej Drejhammar
2020-05-06 16:31:13 +02:00

View File

@@ -552,14 +552,14 @@ def hg2git(repourl,m,marksfile,mappingfile,headsfile,tipfile,
mapping_cache[hexlify(revnode)] = b"%d" % rev
if submodule_mappings:
# Make sure that all submodules are registered in the submodule-mappings file
# Make sure that all mercurial submodules are registered in the submodule-mappings file
for rev in range(0,max):
ctx=revsymbol(repo,b"%d" % rev)
if ctx.hidden():
continue
if ctx.substate:
for key in ctx.substate:
if key not in submodule_mappings:
if ctx.substate[key][2]=='hg' and key not in submodule_mappings:
sys.stderr.write("Error: %s not found in submodule-mappings\n" % (key))
return 1