changeset 3056:6848528f7ebd

Remove temporary git patch files
author Brendan Cully <brendan@kublai.com>
date Wed, 30 Aug 2006 13:42:57 -0700
parents efd26ceedafb
children d16b93f4a6ca
files mercurial/patch.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/patch.py	Wed Aug 30 13:12:26 2006 -0700
+++ b/mercurial/patch.py	Wed Aug 30 13:42:57 2006 -0700
@@ -241,9 +241,6 @@
         fp = os.popen('%s %s -p%d < %s' % (patcher, ' '.join(args), strip,
                                            util.shellquote(patchname)))
 
-        if dopatch == 'filter':
-            False and os.unlink(patchname)
-
         for line in fp:
             line = line.rstrip()
             ui.note(line + '\n')
@@ -265,6 +262,9 @@
                     printed_file = True
                 ui.warn(line + '\n')
             
+        if dopatch == 'filter':
+            os.unlink(patchname)
+
         code = fp.close()
         if code:
             raise util.Abort(_("patch command failed: %s") %