# HG changeset patch # User Matt Mackall # Date 1242686184 18000 # Node ID ff22d4c3ac0403c9a0f173d65049a3e7f3c0d96f # Parent a21605de1509cee2f27bac3081d69725e580f59e commit: explain how to abort commit in editor diff -r a21605de1509 -r ff22d4c3ac04 mercurial/cmdutil.py --- 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(): diff -r a21605de1509 -r ff22d4c3ac04 tests/test-commit.out --- 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'