# HG changeset patch # User Martin Geisler # Date 1206828345 -3600 # Node ID 1a14608bdeffaf32bc8f42161ec4710f94c321ae # Parent 93609576244ee78a5566971a6be41ecda45397f4 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. diff -r 93609576244e -r 1a14608bdeff 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: --")