Mercurial > hg
comparison tests/test-help.t @ 33326:67b42e64194d
tests: add tests for typoed commands
This includes one test showing how disabling a command with e.g.
"extensions.rebase=!" results in the command not being
suggested. We'll fix that next.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 07 Jul 2017 00:12:44 -0700 |
parents | 8e6f4939a69a |
children | 68b7ceda99d7 |
comparison
equal
deleted
inserted
replaced
33325:38df146d0697 | 33326:67b42e64194d |
---|---|
658 update update working directory (or switch revisions) | 658 update update working directory (or switch revisions) |
659 | 659 |
660 (use 'hg help' for the full list of commands or 'hg -v' for details) | 660 (use 'hg help' for the full list of commands or 'hg -v' for details) |
661 [255] | 661 [255] |
662 | 662 |
663 Typoed command gives suggestion | |
664 $ hg puls | |
665 hg: unknown command 'puls' | |
666 (did you mean one of pull, push?) | |
667 [255] | |
668 | |
669 Not enabled extension gets suggested | |
670 | |
671 $ hg rebase | |
672 hg: unknown command 'rebase' | |
673 'rebase' is provided by the following extension: | |
674 | |
675 rebase command to move sets of revisions to a different ancestor | |
676 | |
677 (use 'hg help extensions' for information on enabling extensions) | |
678 [255] | |
679 | |
680 Disabled extension gets suggested | |
681 $ hg --config extensions.rebase=! rebase | |
682 hg: unknown command 'rebase' | |
683 (did you mean one of rename, resolve?) | |
684 [255] | |
663 | 685 |
664 Make sure that we don't run afoul of the help system thinking that | 686 Make sure that we don't run afoul of the help system thinking that |
665 this is a section and erroring out weirdly. | 687 this is a section and erroring out weirdly. |
666 | 688 |
667 $ hg .log | 689 $ hg .log |