changeset 13637 | 4e976235c985 |
parent 13528 | 73bf872a91d8 |
parent 13632 | 33a33f19aad2 |
child 13728 | 15d1db2abfcb |
--- a/hgext/mq.py Mon Mar 14 12:26:50 2011 +0100 +++ b/hgext/mq.py Mon Mar 14 14:05:19 2011 +0100 @@ -1455,9 +1455,10 @@ try: # might be nice to attempt to roll back strip after this - patchf.rename() n = repo.commit(message, user, ph.date, match=match, force=True) + # only write patch after a successful commit + patchf.rename() self.applied.append(statusentry(n, patchfn)) except: ctx = repo[cparents[0]]