--- a/mercurial/localrepo.py Sun Oct 06 19:25:18 2019 -0400
+++ b/mercurial/localrepo.py Mon Oct 07 00:04:04 2019 -0400
@@ -1689,7 +1689,7 @@
else:
tags = self._tagscache.tags
rev = self.changelog.rev
- for k, v in tags.iteritems():
+ for k, v in pycompat.iteritems(tags):
try:
# ignore tags to unknown nodes
rev(v)
@@ -1724,14 +1724,14 @@
# writing to the cache), but the rest of Mercurial wants them in
# local encoding.
tags = {}
- for (name, (node, hist)) in alltags.iteritems():
+ for (name, (node, hist)) in pycompat.iteritems(alltags):
if node != nullid:
tags[encoding.tolocal(name)] = node
tags[b'tip'] = self.changelog.tip()
tagtypes = dict(
[
(encoding.tolocal(name), value)
- for (name, value) in tagtypes.iteritems()
+ for (name, value) in pycompat.iteritems(tagtypes)
]
)
return (tags, tagtypes)
@@ -1751,7 +1751,7 @@
'''return a list of tags ordered by revision'''
if not self._tagscache.tagslist:
l = []
- for t, n in self.tags().iteritems():
+ for t, n in pycompat.iteritems(self.tags()):
l.append((self.changelog.rev(n), t, n))
self._tagscache.tagslist = [(t, n) for r, t, n in sorted(l)]
@@ -1761,7 +1761,7 @@
'''return the tags associated with a node'''
if not self._tagscache.nodetagscache:
nodetagscache = {}
- for t, n in self._tagscache.tags.iteritems():
+ for t, n in pycompat.iteritems(self._tagscache.tags):
nodetagscache.setdefault(n, []).append(t)
for tags in pycompat.itervalues(nodetagscache):
tags.sort()
@@ -1886,7 +1886,7 @@
mf = matchmod.match(self.root, b'', [pat])
fn = None
params = cmd
- for name, filterfn in self._datafilters.iteritems():
+ for name, filterfn in pycompat.iteritems(self._datafilters):
if cmd.startswith(name):
fn = filterfn
params = cmd[len(name) :].lstrip()