Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 6808:6a9025a667ae
localrepo: do not modify a dictionary being iterated in status()
author | Christian Boos <cboos@neuf.fr> |
---|---|
date | Fri, 18 Jul 2008 12:31:40 +0200 |
parents | 854b907527e5 |
children | 8f7a2915170a |
comparison
equal
deleted
inserted
replaced
6807:6d68edc3217f | 6808:6a9025a667ae |
---|---|
951 If node2 is None, compare node1 with working directory. | 951 If node2 is None, compare node1 with working directory. |
952 """ | 952 """ |
953 | 953 |
954 def mfmatches(ctx): | 954 def mfmatches(ctx): |
955 mf = ctx.manifest().copy() | 955 mf = ctx.manifest().copy() |
956 for fn in mf: | 956 for fn in mf.keys(): |
957 if not match(fn): | 957 if not match(fn): |
958 del mf[fn] | 958 del mf[fn] |
959 return mf | 959 return mf |
960 | 960 |
961 ctx1 = self[node1] | 961 ctx1 = self[node1] |