Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
14528:0bd69e37fd20 | 14529:e7a1814854b9 |
---|---|
3157 | 3157 |
3158 if not haspatch: | 3158 if not haspatch: |
3159 raise util.Abort(_('no diffs found')) | 3159 raise util.Abort(_('no diffs found')) |
3160 | 3160 |
3161 if msgs: | 3161 if msgs: |
3162 repo.opener.write('last-message.txt', '\n* * *\n'.join(msgs)) | 3162 repo.savecommitmessage('\n* * *\n'.join(msgs)) |
3163 finally: | 3163 finally: |
3164 release(lock, wlock) | 3164 release(lock, wlock) |
3165 | 3165 |
3166 @command('incoming|in', | 3166 @command('incoming|in', |
3167 [('f', 'force', None, | 3167 [('f', 'force', None, |