equal
deleted
inserted
replaced
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 |