mercurial/commands.py
changeset 14529 e7a1814854b9
parent 14511 30506b894359
child 14532 2498128821a9
--- 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)