changeset 10140:5d868e0565f6

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.
author Henri Wiechers <hwiechers@gmail.com>
date Thu, 24 Dec 2009 18:53:35 +0200
parents d09bed527343
children 827b7d6f9016
files tests/test-help tests/test-help.out
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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)