Patchwork D1726: githelp: replace suggestion of `hg record`

login
register
mail settings
Submitter phabricator
Date Jan. 18, 2018, 7:58 p.m.
Message ID <f369aac73bdf20742d143e24096b9323@localhost.localdomain>
Download mbox | patch
Permalink /patch/26925/
State Not Applicable
Headers show

Comments

phabricator - Jan. 18, 2018, 7:58 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa10a0d5561a9: githelp: replace suggestion of `hg record` (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

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

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

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

CHANGE DETAILS




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

Patch

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
@@ -415,7 +415,7 @@ 
 
     cmd = Command('commit')
     if opts.get('patch'):
-        cmd = Command('record')
+        cmd = Command('commit --interactive')
 
     if opts.get('amend'):
         if opts.get('no_edit'):