Mercurial > hg
changeset 31266:8089de5fab89
dispatch: add pagination of two more help cases
I missed these in the last round anf Yuya spotted them in
review. Thanks!
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 08 Mar 2017 18:32:42 -0500 |
parents | 79715ba22f9c |
children | 881ed6a4cf87 |
files | mercurial/dispatch.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/dispatch.py Wed Mar 08 18:31:33 2017 -0500 +++ b/mercurial/dispatch.py Wed Mar 08 18:32:42 2017 -0500 @@ -234,9 +234,11 @@ (inst.args[0], " ".join(inst.args[1]))) except error.CommandError as inst: if inst.args[0]: + ui.pager('help') ui.warn(_("hg %s: %s\n") % (inst.args[0], inst.args[1])) commands.help_(ui, inst.args[0], full=False, command=True) else: + ui.pager('help') ui.warn(_("hg: %s\n") % inst.args[1]) commands.help_(ui, 'shortlist') except error.ParseError as inst: