localrepo: do not modify a dictionary being iterated in status()
authorChristian Boos <cboos@neuf.fr>
Fri, 18 Jul 2008 12:31:40 +0200
changeset 6808 6a9025a667ae
parent 6807 6d68edc3217f
child 6809 89ec85aa6cc3
localrepo: do not modify a dictionary being iterated in status()
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Sun Jul 20 19:08:59 2008 +0200
+++ b/mercurial/localrepo.py	Fri Jul 18 12:31:40 2008 +0200
@@ -953,7 +953,7 @@
 
         def mfmatches(ctx):
             mf = ctx.manifest().copy()
-            for fn in mf:
+            for fn in mf.keys():
                 if not match(fn):
                     del mf[fn]
             return mf