Mercurial > public > mercurial-scm > hg
diff mercurial/commands.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 | 30506b894359 |
children | 2498128821a9 |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Jun 04 15:20:49 2011 +0200 +++ b/mercurial/commands.py Sat Jun 04 15:56:48 2011 +0200 @@ -3159,7 +3159,7 @@ raise util.Abort(_('no diffs found')) if msgs: - repo.opener.write('last-message.txt', '\n* * *\n'.join(msgs)) + repo.savecommitmessage('\n* * *\n'.join(msgs)) finally: release(lock, wlock)