localrepo: do not modify ctx.remove() list in-place stable
authorPatrick Mezard <pmezard@gmail.com>
Mon, 01 Nov 2010 17:26:08 +0100
branchstable
changeset 12899 fabe61418a53
parent 12898 f2fd909053d9
child 12900 4ff61287bde2
localrepo: do not modify ctx.remove() list in-place
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Mon Nov 01 16:22:41 2010 +0100
+++ b/mercurial/localrepo.py	Mon Nov 01 17:26:08 2010 +0100
@@ -981,7 +981,7 @@
         """
 
         tr = lock = None
-        removed = ctx.removed()
+        removed = list(ctx.removed())
         p1, p2 = ctx.p1(), ctx.p2()
         m1 = p1.manifest().copy()
         m2 = p2.manifest()