--- a/hgext3rd/topic/discovery.py Sun Jul 14 22:34:36 2019 -0700
+++ b/hgext3rd/topic/discovery.py Fri Jul 12 23:24:04 2019 -0700
@@ -110,7 +110,7 @@
repo.unfiltered = lambda: unxx
pushop.repo = repo
summary = orig(pushop)
- for key, value in summary.iteritems():
+ for key, value in summary.items():
if ':' in key: # This is a topic
if value[0] is None and value[1]:
summary[key] = ([value[1][0]], ) + value[1:]
@@ -171,12 +171,12 @@
if repo is not None:
repo.invalidatecaches()
finalheads = _nbheads(repo)
- for branch, oldnb in tr._prepushheads.iteritems():
+ for branch, oldnb in tr._prepushheads.items():
newnb = finalheads.pop(branch, 0)
if oldnb < newnb:
msg = _('push create a new head on branch "%s"' % branch)
raise error.Abort(msg)
- for branch, newnb in finalheads.iteritems():
+ for branch, newnb in finalheads.items():
if 1 < newnb:
msg = _('push create more than 1 head on new branch "%s"'
% branch)