context: don't spuriously raise abort when a file goes missing.
authorMatt Mackall <mpm@selenic.com>
Fri, 08 Dec 2006 13:14:57 -0600
changeset 3823 676b75547d13
parent 3822 28134d82db9b
child 3829 531c116b2028
child 3832 08c169cbd9e1
context: don't spuriously raise abort when a file goes missing.
mercurial/context.py
--- a/mercurial/context.py	Fri Dec 08 13:04:10 2006 -0600
+++ b/mercurial/context.py	Fri Dec 08 13:14:57 2006 -0600
@@ -384,7 +384,10 @@
         for i, l in (("a", added), ("m", modified), ("u", unknown)):
             for f in l:
                 man[f] = man.get(copied.get(f, f), nullid) + i
-                man.set(f, util.is_exec(self._repo.wjoin(f), man.execf(f)))
+                try:
+                    man.set(f, util.is_exec(self._repo.wjoin(f), man.execf(f)))
+                except OSError:
+                    pass
 
         for f in deleted + removed:
             if f in man: