changeset 19:12360c04fa48

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.
author mpm@selenic.com
date Wed, 04 May 2005 15:32:16 -0800
parents 2fd3e1e3783f
children a664c2b624cf
files mercurial/hg.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 = {}