test-help: improve test coverage
Adds a test for help on a command with no options.
Extends test coverage of commands.help_ by 2 lines.
--- a/tests/test-help Thu Dec 24 18:53:34 2009 +0200
+++ b/tests/test-help Thu Dec 24 18:53:35 2009 +0200
@@ -18,6 +18,9 @@
echo %% test ambiguous command help
hg help ad
+echo %% test command without options
+hg help verify
+
hg help diff
hg help status
hg -q help status
--- a/tests/test-help.out Thu Dec 24 18:53:34 2009 +0200
+++ b/tests/test-help.out Thu Dec 24 18:53:35 2009 +0200
@@ -301,6 +301,19 @@
addremove add all new files, delete all missing files
use "hg -v help ad" to show aliases and global options
+%% test command without options
+hg verify
+
+verify the integrity of the repository
+
+ Verify the integrity of the current repository.
+
+ This will perform an extensive check of the repository's integrity,
+ validating the hashes and checksums of each entry in the changelog,
+ manifest, and tracked files, as well as the integrity of their crosslinks
+ and indices.
+
+use "hg -v help verify" to show global options
hg diff [OPTION]... [-r REV1 [-r REV2]] [FILE]...
diff repository (or selected files)