mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
githelp: fix crash in mergebase
Summary: `_` does not take two arguments while `ui.status` does. Test Plan: Added a test case Reviewers: #sourcecontrol, durham Reviewed By: durham Subscribers: mjpieters Differential Revision: https://phabricator.intern.facebook.com/D4010079 Signature: t1:4010079:1476298648:81e678fbe433aa8cca8b03c9eba50d9b78bbc9bb Blame Revision: D2811887
This commit is contained in:
parent
68f61c682a
commit
82b158ed59
@ -647,8 +647,8 @@ def mergebase(ui, repo, *args, **kwargs):
|
||||
cmd = Command("log -T '{node}\\n' -r 'ancestor(%s,%s)'"
|
||||
% (args[0], args[1]))
|
||||
|
||||
ui.status(_('NOTE: ancestors() is part of the revset language.\n',
|
||||
"Learn more about revsets with 'hg help revsets'\n\n"))
|
||||
ui.status(_('NOTE: ancestors() is part of the revset language.\n'),
|
||||
_("Learn more about revsets with 'hg help revsets'\n\n"))
|
||||
ui.status((str(cmd)), "\n")
|
||||
|
||||
def mergetool(ui, repo, *args, **kwargs):
|
||||
|
@ -241,3 +241,11 @@ githelp for apply with no options
|
||||
githelp for apply with directory strip custom
|
||||
$ hg githelp -- apply -p 5
|
||||
hg import -p 5
|
||||
|
||||
git merge-base
|
||||
$ hg githelp -- git merge-base --is-ancestor
|
||||
ignoring unknown option --is-ancestor
|
||||
NOTE: ancestors() is part of the revset language.
|
||||
Learn more about revsets with 'hg help revsets'
|
||||
|
||||
hg log -T '{node}\n' -r 'ancestor(A,B)'
|
||||
|
Loading…
Reference in New Issue
Block a user