Mercurial > public > mercurial-scm > hg-stable
diff mercurial/patch.py @ 7389:72f0e4ebd9e6
patch: remove useless unlink() call
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Wed, 19 Nov 2008 13:27:57 +0100 |
parents | eae1767cc6a8 |
children | 27d304c8cc03 |
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))