# HG changeset patch # User Gregory Szorc # Date 1513659480 28800 # Node ID a10a0d5561a902deb2a556eb8f560a7e41b97228 # Parent 5edfead8cc952f04aa14d0d487b336f1d62c49d1 githelp: replace suggestion of `hg record` `hg record` is deprecated in favor of `hg commit --interactive`. Differential Revision: https://phab.mercurial-scm.org/D1726 diff -r 5edfead8cc95 -r a10a0d5561a9 hgext/githelp.py --- a/hgext/githelp.py Mon Dec 18 20:56:01 2017 -0800 +++ b/hgext/githelp.py Mon Dec 18 20:58:00 2017 -0800 @@ -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'): diff -r 5edfead8cc95 -r a10a0d5561a9 tests/test-githelp.t --- a/tests/test-githelp.t Mon Dec 18 20:56:01 2017 -0800 +++ b/tests/test-githelp.t Mon Dec 18 20:58:00 2017 -0800 @@ -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