--- a/mercurial/config.py Mon Jun 20 10:42:19 2011 +0200
+++ b/mercurial/config.py Mon Jun 20 11:08:41 2011 +0200
@@ -27,6 +27,9 @@
def update(self, src):
for k in src:
self[k] = src[k]
+ def clear(self):
+ dict.clear(self)
+ self._list = []
def items(self):
return [(k, self[k]) for k in self._list]
def __delitem__(self, key):
--- a/mercurial/patch.py Mon Jun 20 10:42:19 2011 +0200
+++ b/mercurial/patch.py Mon Jun 20 11:08:41 2011 +0200
@@ -1378,7 +1378,7 @@
cwd = repo.getcwd()
if cwd:
cfiles = [util.pathto(repo.root, cwd, f)
- for f in cfile]
+ for f in cfiles]
scmutil.addremove(repo, cfiles, similarity=similarity)
code = fp.close()
if code: