hgext/mq.py
changeset 15057 774da7121fc9
parent 14987 3709cca378ff
child 15085 110d6804bfc6
--- a/hgext/mq.py	Wed Aug 24 05:42:41 2011 -0400
+++ b/hgext/mq.py	Thu Aug 25 20:21:04 2011 -0400
@@ -1492,7 +1492,7 @@
                 n = repo.commit(message, user, ph.date, match=match,
                                 force=True)
                 # only write patch after a successful commit
-                patchf.rename()
+                patchf.close()
                 self.applied.append(statusentry(n, patchfn))
             except:
                 ctx = repo[cparents[0]]