Mercurial > hg
diff hgext/mq.py @ 13632:33a33f19aad2 stable
mq: do not let qrefresh write bad patch
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sun, 13 Mar 2011 16:18:46 +0100 |
parents | 9510ddf87c43 |
children | 4e976235c985 6783f47d90dd |
line wrap: on
line diff
--- a/hgext/mq.py Sun Mar 13 15:04:13 2011 +0100 +++ b/hgext/mq.py Sun Mar 13 16:18:46 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]]