mirror of
https://github.com/frej/fast-export.git
synced 2026-01-16 11:12:08 +01:00
Use changectx directly
There's no need to call repo[revnode] when repo[rev] works perfectly fine. And since we have the context already we can just do ctx.hex() instead of hexlifying ourselves. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
@@ -561,10 +561,10 @@ def hg2git(repourl,m,marksfile,mappingfile,headsfile,tipfile,
|
||||
max=tip
|
||||
|
||||
for rev in range(0,max):
|
||||
revnode=repo[rev].node()
|
||||
if repo[revnode].hidden():
|
||||
ctx=repo[rev]
|
||||
if ctx.hidden():
|
||||
continue
|
||||
mapping_cache[hexlify(revnode)] = b"%d" % rev
|
||||
mapping_cache[ctx.hex()] = b"%d" % rev
|
||||
|
||||
if submodule_mappings:
|
||||
# Make sure that all mercurial submodules are registered in the submodule-mappings file
|
||||
|
||||
Reference in New Issue
Block a user