changeset 8497:ff22d4c3ac04

commit: explain how to abort commit in editor
author Matt Mackall <mpm@selenic.com>
date Mon, 18 May 2009 17:36:24 -0500
parents a21605de1509
children a5182c39766a
files mercurial/cmdutil.py tests/test-commit.out
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Mon May 18 17:36:24 2009 -0500
+++ b/mercurial/cmdutil.py	Mon May 18 17:36:24 2009 -0500
@@ -1231,6 +1231,7 @@
     edittext.append("") # Empty line between message and comments.
     edittext.append(_("HG: Enter commit message."
                       "  Lines beginning with 'HG:' are removed."))
+    edittext.append("HG: Leave message empty to abort commit.")
     edittext.append("HG: --")
     edittext.append(_("HG: user: %s") % ctx.user())
     if ctx.p2():
--- a/tests/test-commit.out	Mon May 18 17:36:24 2009 -0500
+++ b/tests/test-commit.out	Mon May 18 17:36:24 2009 -0500
@@ -108,6 +108,7 @@
 
 
 HG: Enter commit message.  Lines beginning with 'HG:' are removed.
+HG: Leave message empty to abort commit.
 HG: --
 HG: user: test
 HG: branch 'default'