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

login
register
mail settings
Submitter phabricator
Date Dec. 19, 2017, 5:36 a.m.
Message ID <differential-rev-PHID-DREV-c5dgpylf56timfvc74u3-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/26352/
State Superseded
Headers show

Comments

phabricator - Dec. 19, 2017, 5:36 a.m.
indygreg created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  `hg record` is deprecated in favor of `hg commit --interactive`.

REPOSITORY
  rHG Mercurial

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

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

CHANGE DETAILS




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