diff hgext/evolve.py @ 1150:2c99d92faa62 stable

evolve: fix error during iteration over bumped changesets (bug38) We are iterating over a manifest while altering it. We cannot use iteritems() in this context. we move to items, that will be an issue for very large changesets.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Mon, 03 Nov 2014 11:11:14 +0000
parents a206ee74f129
children be6eff57d5bb
line wrap: on
line diff
--- a/hgext/evolve.py	Mon Oct 20 13:54:46 2014 +0300
+++ b/hgext/evolve.py	Mon Nov 03 11:11:14 2014 +0000
@@ -1415,7 +1415,7 @@
         files = set()
         copied = copies.pathcopies(prec, bumped)
         precmanifest = prec.manifest()
-        for key, val in bumped.manifest().iteritems():
+        for key, val in bumped.manifest().items():
             if precmanifest.pop(key, None) != val:
                 files.add(key)
         files.update(precmanifest)  # add missing files