mercurial/bundle2.py
changeset 45117 b1e51ef4e536
parent 45106 a03c177a4679
child 45144 c93dd9d9f1e6
--- a/mercurial/bundle2.py	Tue Jul 07 22:00:02 2020 +0200
+++ b/mercurial/bundle2.py	Wed Jul 08 00:15:15 2020 +0200
@@ -2208,7 +2208,7 @@
         b'remote repository changed while pushing - please try again '
         b'(%s is %s expected %s)'
     )
-    for expectedphase, nodes in enumerate(phasetonodes):
+    for expectedphase, nodes in pycompat.iteritems(phasetonodes):
         for n in nodes:
             actualphase = phasecache.phase(unfi, cl.rev(n))
             if actualphase != expectedphase: