import: add another line feed to message join string
authorSteve Borho <steve@borho.org>
Thu, 04 Nov 2010 11:33:57 -0500
changeset 12918 5c3e5cd141ea
parent 12917 a419cb2395d5
child 12919 0071c8fc2fa6
import: add another line feed to message join string Changeset descriptions are not guaranteed to have a trailing carriage return.
mercurial/commands.py
--- 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)