changeset 7389:72f0e4ebd9e6

patch: remove useless unlink() call
author Patrick Mezard <pmezard@gmail.com>
date Wed, 19 Nov 2008 13:27:57 +0100
parents 86bfd65532ac
children 0d1c770c6be1
files mercurial/patch.py
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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))