Mercurial > hg
comparison mercurial/dispatch.py @ 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 | 3a03264de3eb |
children | dc9842a7017c |
comparison
equal
deleted
inserted
replaced
31265:79715ba22f9c | 31266:8089de5fab89 |
---|---|
232 except error.AmbiguousCommand as inst: | 232 except error.AmbiguousCommand as inst: |
233 ui.warn(_("hg: command '%s' is ambiguous:\n %s\n") % | 233 ui.warn(_("hg: command '%s' is ambiguous:\n %s\n") % |
234 (inst.args[0], " ".join(inst.args[1]))) | 234 (inst.args[0], " ".join(inst.args[1]))) |
235 except error.CommandError as inst: | 235 except error.CommandError as inst: |
236 if inst.args[0]: | 236 if inst.args[0]: |
237 ui.pager('help') | |
237 ui.warn(_("hg %s: %s\n") % (inst.args[0], inst.args[1])) | 238 ui.warn(_("hg %s: %s\n") % (inst.args[0], inst.args[1])) |
238 commands.help_(ui, inst.args[0], full=False, command=True) | 239 commands.help_(ui, inst.args[0], full=False, command=True) |
239 else: | 240 else: |
241 ui.pager('help') | |
240 ui.warn(_("hg: %s\n") % inst.args[1]) | 242 ui.warn(_("hg: %s\n") % inst.args[1]) |
241 commands.help_(ui, 'shortlist') | 243 commands.help_(ui, 'shortlist') |
242 except error.ParseError as inst: | 244 except error.ParseError as inst: |
243 _formatparse(ui.warn, inst) | 245 _formatparse(ui.warn, inst) |
244 return -1 | 246 return -1 |