Mercurial > hg-stable
diff tests/test-extension.t @ 21289:c3784e3c3e8d
help: suggest keyword search when no topic is found
When `hg help foobar` fails, it now suggests using `hg help --keyword foobar`
instead of printing a full page of basic commands.
This should greatly increases discoverability of the `hg help --keyword`
argument.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 16 Apr 2014 19:55:40 -0400 |
parents | 51e5c793a9f4 |
children | 26d2fb899637 |
line wrap: on
line diff
--- a/tests/test-extension.t Wed Apr 16 20:01:03 2014 -0400 +++ b/tests/test-extension.t Wed Apr 16 19:55:40 2014 -0400 @@ -621,8 +621,8 @@ > EOF $ hg --config extensions.path=./path.py help foo > /dev/null warning: error finding commands in $TESTTMP/hgext/forest.py (glob) - hg: unknown command 'foo' - warning: error finding commands in $TESTTMP/hgext/forest.py (glob) + abort: no such help topic: foo + (try "hg help --keyword foo") [255] $ cat > throw.py <<EOF