changeset 6911:1a14608bdeff

Begin commit messages with two empty lines. This makes editors like Emacs wrap the commit message correctly. With no empty line between the commit message and the 'HG:' lines, the 'HG:' lines would be wrapped as if they belonged to the commit message and so lose their significance to Mercurial. This makes no difference to what is stored by the commit -- whitespace was already stripped from the beginning and end of commit messages.
author Martin Geisler <mg@daimi.au.dk>
date Sat, 29 Mar 2008 23:05:45 +0100
parents 93609576244e
children b92baef99ebf
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Tue Aug 19 18:07:26 2008 -0700
+++ b/mercurial/localrepo.py	Sat Mar 29 23:05:45 2008 +0100
@@ -879,6 +879,7 @@
                 if text:
                     edittext.append(text)
                 edittext.append("")
+                edittext.append("") # Empty line between message and comments.
                 edittext.append(_("HG: Enter commit message."
                                   "  Lines beginning with 'HG:' are removed."))
                 edittext.append("HG: --")