From: Thomas Arendsen Hein <thomas@intevation.de>
authormpm@selenic.com
Wed, 04 May 2005 15:32:16 -0800
changeset 19 12360c04fa48
parent 18 2fd3e1e3783f
child 20 a664c2b624cf
From: Thomas Arendsen Hein <thomas@intevation.de> mercurial 0.4d had the same problems with removing files, but attached is a patch which fixes that problem. The key change is in dircache.remove(): del self[f] should have been del self.map[f] This error was hidden by the 'except: pass' statement.
mercurial/hg.py
--- a/mercurial/hg.py	Wed May 04 11:01:17 2005 -0800
+++ b/mercurial/hg.py	Wed May 04 15:32:16 2005 -0800
@@ -190,8 +190,8 @@
         self.read()
         self.dirty = 1
         for f in files:
-            try: del self[f]
-            except: pass
+            try: del self.map[f]
+            except KeyError: pass
 
     def clear(self):
         self.map = {}