diff mercurial/commands.py @ 12918:5c3e5cd141ea

import: add another line feed to message join string Changeset descriptions are not guaranteed to have a trailing carriage return.
author Steve Borho <steve@borho.org>
date Thu, 04 Nov 2010 11:33:57 -0500
parents 0e0a52bd58f9
children 6eab8f0df2ca
line wrap: on
line diff
--- a/mercurial/commands.py	Wed Nov 03 22:34:16 2010 +0100
+++ b/mercurial/commands.py	Thu Nov 04 11:33:57 2010 -0500
@@ -2383,7 +2383,7 @@
                 raise util.Abort(_('no diffs found'))
 
         if msgs:
-            repo.opener('last-message.txt', 'wb').write('* * *\n'.join(msgs))
+            repo.opener('last-message.txt', 'wb').write('\n* * *\n'.join(msgs))
     finally:
         release(lock, wlock)