Mercurial > hg
comparison contrib/synthrepo.py @ 36299:238646784294
py3: use default dict iterator instead of iterkeys
These are the easy cases. Some cases in manifest.py will require more
careful inspection.
Differential Revision: https://phab.mercurial-scm.org/D2315
author | Augie Fackler <augie@google.com> |
---|---|
date | Sun, 18 Feb 2018 00:43:50 -0500 |
parents | 8a0cac20a1ad |
children | c6061cadb400 |
comparison
equal
deleted
inserted
replaced
36298:b1c713ab785d | 36299:238646784294 |
---|---|
379 return context.memfilectx(repo, memctx, path, files[path]) | 379 return context.memfilectx(repo, memctx, path, files[path]) |
380 | 380 |
381 ui.progress(_synthesizing, None) | 381 ui.progress(_synthesizing, None) |
382 message = 'synthesized wide repo with %d files' % (len(files),) | 382 message = 'synthesized wide repo with %d files' % (len(files),) |
383 mc = context.memctx(repo, [pctx.node(), nullid], message, | 383 mc = context.memctx(repo, [pctx.node(), nullid], message, |
384 files.iterkeys(), filectxfn, ui.username(), | 384 files, filectxfn, ui.username(), |
385 '%d %d' % util.makedate()) | 385 '%d %d' % util.makedate()) |
386 initnode = mc.commit() | 386 initnode = mc.commit() |
387 if ui.debugflag: | 387 if ui.debugflag: |
388 hexfn = hex | 388 hexfn = hex |
389 else: | 389 else: |