##// END OF EJS Templates
py3: use default dict iterator instead of iterkeys...
Augie Fackler -
r36313:23864678 default
parent child Browse files
Show More
@@ -381,7 +381,7 b' def synthesize(ui, repo, descpath, **opt'
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:
@@ -384,7 +384,7 b' class svn_source(converter_source):'
384
384
385 def setrevmap(self, revmap):
385 def setrevmap(self, revmap):
386 lastrevs = {}
386 lastrevs = {}
387 for revid in revmap.iterkeys():
387 for revid in revmap:
388 uuid, module, revnum = revsplit(revid)
388 uuid, module, revnum = revsplit(revid)
389 lastrevnum = lastrevs.setdefault(module, revnum)
389 lastrevnum = lastrevs.setdefault(module, revnum)
390 if revnum > lastrevnum:
390 if revnum > lastrevnum:
@@ -589,7 +589,7 b' class rebaseruntime(object):'
589 date=self.date)
589 date=self.date)
590 if newnode is not None:
590 if newnode is not None:
591 newrev = repo[newnode].rev()
591 newrev = repo[newnode].rev()
592 for oldrev in self.state.iterkeys():
592 for oldrev in self.state:
593 self.state[oldrev] = newrev
593 self.state[oldrev] = newrev
594
594
595 if 'qtip' in repo.tags():
595 if 'qtip' in repo.tags():
General Comments 0
You need to be logged in to leave comments. Login now