Begin commit messages with two empty lines.
authorMartin Geisler <mg@daimi.au.dk>
Sat, 29 Mar 2008 23:05:45 +0100
changeset 6911 1a14608bdeff
parent 6910 93609576244e
child 6912 b92baef99ebf
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.
mercurial/localrepo.py
--- 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: --")