--- a/mercurial/revlog.py Sun Oct 06 19:25:18 2019 -0400
+++ b/mercurial/revlog.py Mon Oct 07 00:04:04 2019 -0400
@@ -444,7 +444,9 @@
self._flagprocessors[REVIDX_ELLIPSIS] = ellipsisprocessor
# revlog v0 doesn't have flag processors
- for flag, processor in opts.get(b'flagprocessors', {}).iteritems():
+ for flag, processor in pycompat.iteritems(
+ opts.get(b'flagprocessors', {})
+ ):
flagutil.insertflagprocessor(flag, processor, self._flagprocessors)
if self._chunkcachesize <= 0:
@@ -1141,7 +1143,7 @@
# But, obviously its parents aren't.
for p in self.parents(n):
heads.pop(p, None)
- heads = [head for head, flag in heads.iteritems() if flag]
+ heads = [head for head, flag in pycompat.iteritems(heads) if flag]
roots = list(roots)
assert orderedout
assert roots