commit: explain how to abort commit in editor
authorMatt Mackall <mpm@selenic.com>
Mon, 18 May 2009 17:36:24 -0500
changeset 8497 ff22d4c3ac04
parent 8496 a21605de1509
child 8498 a5182c39766a
commit: explain how to abort commit in editor
mercurial/cmdutil.py
tests/test-commit.out
--- 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'