patch: remove useless unlink() call
authorPatrick Mezard <pmezard@gmail.com>
Wed, 19 Nov 2008 13:27:57 +0100
changeset 7389 72f0e4ebd9e6
parent 7386 86bfd65532ac
child 7390 0d1c770c6be1
patch: remove useless unlink() call
mercurial/patch.py
--- a/mercurial/patch.py	Mon Nov 17 11:45:38 2008 -0800
+++ b/mercurial/patch.py	Wed Nov 19 13:27:57 2008 +0100
@@ -307,9 +307,6 @@
         self.ui.warn(
             _("%d out of %d hunks FAILED -- saving rejects to file %s\n") %
             (len(self.rej), self.hunks, fname))
-        try: os.unlink(fname)
-        except:
-            pass
         fp = file(fname, 'wb')
         base = os.path.basename(self.fname)
         fp.write("--- %s\n+++ %s\n" % (base, base))