Mercurial > hg
comparison tests/test-help.t @ 33327:68b7ceda99d7
dispatch: fix typo suggestion for disabled extension
If the matching command lives in an in-tree extension (which is all we
scan for), and the user has disabled that extension with
"extensions.<name>=!", we were not finding it, because the path in
_disabledextensions was the empty string. If the user had set
"extensions.<name>=!<valid path>" it would work, so it seems like just
a mistake that it didn't work.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 07 Jul 2017 00:13:53 -0700 |
parents | 67b42e64194d |
children | 9a9f95214f46 |
comparison
equal
deleted
inserted
replaced
33326:67b42e64194d | 33327:68b7ceda99d7 |
---|---|
678 [255] | 678 [255] |
679 | 679 |
680 Disabled extension gets suggested | 680 Disabled extension gets suggested |
681 $ hg --config extensions.rebase=! rebase | 681 $ hg --config extensions.rebase=! rebase |
682 hg: unknown command 'rebase' | 682 hg: unknown command 'rebase' |
683 (did you mean one of rename, resolve?) | 683 'rebase' is provided by the following extension: |
684 | |
685 rebase command to move sets of revisions to a different ancestor | |
686 | |
687 (use 'hg help extensions' for information on enabling extensions) | |
684 [255] | 688 [255] |
685 | 689 |
686 Make sure that we don't run afoul of the help system thinking that | 690 Make sure that we don't run afoul of the help system thinking that |
687 this is a section and erroring out weirdly. | 691 this is a section and erroring out weirdly. |
688 | 692 |