mercurial/context.py
changeset 3353 69fe021cc23e
parent 3335 b02e60097bbe
parent 3351 50a18815e3f0
child 3400 d8eba1c3ce9b
child 3428 cc9c31b07c2c
--- a/mercurial/context.py
+++ b/mercurial/context.py
@@ -367,7 +367,8 @@ class workingctx(changectx):
                 man.set(f, util.is_exec(self._repo.wjoin(f), man.execf(f)))
 
         for f in deleted + removed:
-            del man[f]
+            if f in man:
+                del man[f]
 
         self._manifest = man