[PATCH] record: quote command in use hg commit message

timeless timeless at gmail.com
Sun Nov 21 05:07:29 CST 2010


# HG changeset patch
# User timeless <timeless at gmail.com>
# Date 1290337626 21600
# Node ID 47c51289ad2b1774b71a67a61a4255c3dfe51c30
# Parent  42ac864ed3946df2a3b7b87dcbc05cd4d35a62c3
record: quote command in use hg commit message

diff --git a/hgext/record.py b/hgext/record.py
--- a/hgext/record.py
+++ b/hgext/record.py
@@ -429,7 +429,7 @@ def dorecord(ui, repo, commitfunc, *pats
         merge = len(repo[None].parents()) > 1
         if merge:
             raise util.Abort(_('cannot partially commit a merge '
-                               '(use hg commit instead)'))
+                               '(use "hg commit" instead)'))
 
         changes = repo.status(match=match)[:3]
         diffopts = mdiff.diffopts(git=True, nodates=True)
diff --git a/tests/test-record.t b/tests/test-record.t
--- a/tests/test-record.t
+++ b/tests/test-record.t
@@ -883,7 +883,7 @@ Abort early when a merge is in progress
   (branch merge, don't forget to commit)
 
   $ hg record -m'will abort'
-  abort: cannot partially commit a merge (use hg commit instead)
+  abort: cannot partially commit a merge (use "hg commit" instead)
   [255]
 
   $ hg up -C


More information about the Mercurial-devel mailing list