Mercurial > public > mercurial-scm > hg-stable
diff hgext/mq.py @ 14529:e7a1814854b9
localrepo: add savecommitmessage() to write last-message.txt
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sat, 04 Jun 2011 15:56:48 +0200 |
parents | 4f695345979c |
children | d976542986d2 |
line wrap: on
line diff
--- a/hgext/mq.py Sat Jun 04 15:20:49 2011 +0200 +++ b/hgext/mq.py Sat Jun 04 15:56:48 2011 +0200 @@ -2273,9 +2273,7 @@ ph = patchheader(q.join(patch), q.plainmode) message = ui.edit('\n'.join(ph.message), ph.user or ui.username()) # We don't want to lose the patch message if qrefresh fails (issue2062) - msgfile = repo.opener('last-message.txt', 'wb') - msgfile.write(message) - msgfile.close() + repo.savecommitmessage(message) setupheaderopts(ui, opts) ret = q.refresh(repo, pats, msg=message, **opts) q.save_dirty()