D1726: githelp: replace suggestion of `hg record`

indygreg (Gregory Szorc) phabricator at mercurial-scm.org
Fri Dec 22 20:39:53 EST 2017


indygreg updated this revision to Diff 4594.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1726?vs=4545&id=4594

REVISION DETAIL
  https://phab.mercurial-scm.org/D1726

AFFECTED FILES
  hgext/githelp.py
  tests/test-githelp.t

CHANGE DETAILS

diff --git a/tests/test-githelp.t b/tests/test-githelp.t
--- a/tests/test-githelp.t
+++ b/tests/test-githelp.t
@@ -34,12 +34,12 @@
 
 githelp on a command with options should succeed
   $ hg githelp -- commit -pm "abc"
-  hg record -m 'abc'
+  hg commit --interactive -m 'abc'
 
 githelp on a command with standalone unrecognized option should succeed with warning
   $ hg githelp -- commit -p -v
   ignoring unknown option -v
-  hg record
+  hg commit --interactive
 
 githelp on a command with unrecognized option packed with other options should fail with error
   $ hg githelp -- commit -pv
diff --git a/hgext/githelp.py b/hgext/githelp.py
--- a/hgext/githelp.py
+++ b/hgext/githelp.py
@@ -416,7 +416,7 @@
 
     cmd = Command('commit')
     if opts.get('patch'):
-        cmd = Command('record')
+        cmd = Command('commit --interactive')
 
     if opts.get('amend'):
         if opts.get('no_edit'):



To: indygreg, #hg-reviewers, durin42
Cc: mercurial-devel


More information about the Mercurial-devel mailing list