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.
--- 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 = {}