Mercurial > hg-stable
diff tests/test-help.t @ 16884:4fd1f1d7569b
help: fix 'hg help -k' matching an extension without docs
getattr is not needed, __doc__ always exists and defaults to None
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Thu, 07 Jun 2012 15:54:40 +0200 |
parents | 7863ff383894 |
children | 87882c8753d4 |
line wrap: on
line diff
--- a/tests/test-help.t Wed Jun 06 21:17:33 2012 -0500 +++ b/tests/test-help.t Thu Jun 07 15:54:40 2012 +0200 @@ -598,6 +598,15 @@ use "hg -v help nohelp" to show more info + $ hg help -k nohelp + Commands: + + nohelp hg nohelp + + Extension Commands: + + nohelp (no help text available) + Test that default list of commands omits extension commands $ hg help