mercurial/patch.py
changeset 18143 242d2f4ec01c
parent 18054 b35e3364f94a
child 18824 f0d55e1b4855
--- a/mercurial/patch.py	Fri Dec 28 11:55:45 2012 +0100
+++ b/mercurial/patch.py	Fri Dec 28 11:55:57 2012 +0100
@@ -439,11 +439,7 @@
                 util.setflags(self._join(fname), False, True)
 
     def unlink(self, fname):
-        try:
-            util.unlinkpath(self._join(fname))
-        except OSError, inst:
-            if inst.errno != errno.ENOENT:
-                raise
+        util.unlinkpath(self._join(fname), ignoremissing=True)
 
     def writerej(self, fname, failed, total, lines):
         fname = fname + ".rej"