# HG changeset patch # User Henri Wiechers # Date 1261673615 -7200 # Node ID 827b7d6f9016408809968bedc0d353793ccd5755 # Parent 5d868e0565f6eec7fc98b797d469bec2f7cd4daf test-help: improve test coverage Adds a test for commands without help text. Extends test coverage of commands.help_ by 1 line. diff -r 5d868e0565f6 -r 827b7d6f9016 tests/test-help --- a/tests/test-help Thu Dec 24 18:53:35 2009 +0200 +++ b/tests/test-help Thu Dec 24 18:53:35 2009 +0200 @@ -27,4 +27,25 @@ hg help foo hg skjdfks +cat > helpext.py <> $HGRCPATH +echo "helpext = $abspath" >> $HGRCPATH + +echo %% test command with no help text +hg help nohelp + exit 0 diff -r 5d868e0565f6 -r 827b7d6f9016 tests/test-help.out --- a/tests/test-help.out Thu Dec 24 18:53:35 2009 +0200 +++ b/tests/test-help.out Thu Dec 24 18:53:35 2009 +0200 @@ -462,3 +462,9 @@ update update working directory use "hg help" for the full list of commands or "hg -v" for details +%% test command with no help text +hg nohelp + +(no help text available) + +use "hg -v help nohelp" to show global options