equal
deleted
inserted
replaced
482 ui.warn(nocmdmsg) |
482 ui.warn(nocmdmsg) |
483 ui.write(formatted) |
483 ui.write(formatted) |
484 except (error.UnknownCommand, error.Abort): |
484 except (error.UnknownCommand, error.Abort): |
485 suggested = False |
485 suggested = False |
486 if inst.all_commands: |
486 if inst.all_commands: |
487 sim = scmutil.getsimilar(inst.all_commands, inst.command) |
487 sim = error.getsimilar(inst.all_commands, inst.command) |
488 if sim: |
488 if sim: |
489 ui.warn(nocmdmsg) |
489 ui.warn(nocmdmsg) |
490 ui.warn(b"(%s)\n" % scmutil.similarity_hint(sim)) |
490 ui.warn(b"(%s)\n" % error.similarity_hint(sim)) |
491 suggested = True |
491 suggested = True |
492 if not suggested: |
492 if not suggested: |
493 ui.warn(nocmdmsg) |
493 ui.warn(nocmdmsg) |
494 ui.warn(_(b"(use 'hg help' for a list of commands)\n")) |
494 ui.warn(_(b"(use 'hg help' for a list of commands)\n")) |
495 except IOError: |
495 except IOError: |