diff --git a/tests/test-help.t b/tests/test-help.t --- a/tests/test-help.t +++ b/tests/test-help.t @@ -876,3 +876,397 @@ Test usage of section marks in help docu $ cd "$TESTDIR"/../doc $ python check-seclevel.py + $ cd $TESTTMP + +#if serve + +Test the help pages in hgweb. + +Dish up an empty repo; serve it cold. + + $ hg init "$TESTTMP/test" + $ hg serve -R "$TESTTMP/test" -n test -p $HGPORT -d --pid-file=hg.pid + $ cat hg.pid >> $DAEMON_PIDS + + $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help" + 200 Script output follows + + + + + + + + + + Help: Index + + + +
+ + +
+ + + + + + + + + + + +

Topics

configConfiguration Files
datesDate Formats
diffsDiff Formats
environmentEnvironment Variables
extensionsUsing Additional Features
filesetsSpecifying File Sets
glossaryGlossary
hgignoreSyntax for Mercurial Ignore Files
hgwebConfiguring hgweb
merge-toolsMerge Tools
multirevsSpecifying Multiple Revisions
patternsFile Name Patterns
phasesWorking with Phases
revisionsSpecifying Single Revisions
revsetsSpecifying Revision Sets
subreposSubrepositories
templatingTemplate Usage
urlsURL Paths
topic-containing-verboseThis is the topic to test omit indicating.

Main Commands

addadd the specified files on the next commit
annotateshow changeset information by line for each file
clonemake a copy of an existing repository
commitcommit the specified files or all outstanding changes
diffdiff repository (or selected files)
exportdump the header and diffs for one or more changesets
forgetforget the specified files on the next commit
initcreate a new repository in the given directory
logshow revision history of entire repository or files
mergemerge working directory with another revision
pullpull changes from the specified source
pushpush changes to the specified destination
removeremove the specified files on the next commit
servestart stand-alone webserver
statusshow changed files in the working directory
summarysummarize working directory state
updateupdate working directory (or switch revisions)

Other Commands

addremoveadd all new files, delete all missing files
archivecreate an unversioned archive of a repository revision
backoutreverse effect of earlier changeset
bisectsubdivision search of changesets
bookmarkstrack a line of development with movable markers
branchset or show the current branch name
brancheslist repository named branches
bundlecreate a changegroup file
catoutput the current or given revision of files
copymark files as copied for the next commit
graftcopy changes from other branches onto the current branch
grepsearch for a pattern in specified files and revisions
headsshow current repository heads or show branch heads
helpshow help for a given topic or a help overview
identifyidentify the working copy or specified revision
importimport an ordered set of patches
incomingshow new changesets found in source
locatelocate files matching specific patterns
manifestoutput the current or given revision of the project manifest
nohelp(no help text available)
outgoingshow changesets not found in the destination
parentsshow the parents of the working directory or revision
pathsshow aliases for remote repositories
phaseset or show the current phase name
recoverroll back an interrupted transaction
renamerename files; equivalent of copy + remove
resolveredo merges or set/view the merge status of files
revertrestore files to their checkout state
rollbackroll back the last transaction (dangerous)
rootprint the root (top) of the current working directory
showconfigshow combined config settings from all hgrc files
tagadd one or more tags for the current or given revision
tagslist repository tags
tipshow the tip revision
unbundleapply one or more changegroup files
verifyverify the integrity of the repository
versionoutput version and copyright information
+
+
+ + + + + + + + + $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/add" + 200 Script output follows + + + + + + + + + + Help: add + + + +
+ + +
+ +

Help: add

+ + +
+  hg add [OPTION]... [FILE]...
+  
+  add the specified files on the next commit
+  
+      Schedule files to be version controlled and added to the repository.
+  
+      The files will be added to the repository at the next commit. To undo an
+      add before that, see "hg forget".
+  
+      If no names are given, add all files to the repository.
+  
+      An example showing how new (unknown) files are added automatically by "hg
+      add":
+  
+        $ ls
+        foo.c
+        $ hg status
+        ? foo.c
+        $ hg add
+        adding foo.c
+        $ hg status
+        A foo.c
+  
+      Returns 0 if all files are successfully added.
+  
+  options:
+  
+   -I --include PATTERN [+] include names matching the given patterns
+   -X --exclude PATTERN [+] exclude names matching the given patterns
+   -S --subrepos            recurse into subrepositories
+   -n --dry-run             do not perform actions, just print output
+  
+  [+] marked option can be specified multiple times
+  
+  global options:
+  
+   -R --repository REPO   repository root directory or name of overlay bundle
+                          file
+      --cwd DIR           change working directory
+   -y --noninteractive    do not prompt, automatically pick the first choice for
+                          all prompts
+   -q --quiet             suppress output
+   -v --verbose           enable additional output
+      --config CONFIG [+] set/override config option (use 'section.name=value')
+      --debug             enable debugging output
+      --debugger          start debugger
+      --encoding ENCODE   set the charset encoding (default: ascii)
+      --encodingmode MODE set the charset encoding mode (default: strict)
+      --traceback         always print a traceback on exception
+      --time              time how long the command takes
+      --profile           print command execution profile
+      --version           output version information and exit
+   -h --help              display help and exit
+      --hidden            consider hidden changesets
+  
+  [+] marked option can be specified multiple times
+  
+  
+
+
+ + + + + + + + + $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/remove" + 200 Script output follows + + + + + + + + + + Help: remove + + + +
+ + +
+ +

Help: remove

+ + +
+  hg remove [OPTION]... FILE...
+  
+  aliases: rm
+  
+  remove the specified files on the next commit
+  
+      Schedule the indicated files for removal from the current branch.
+  
+      This command schedules the files to be removed at the next commit. To undo
+      a remove before that, see "hg revert". To undo added files, see "hg
+      forget".
+  
+      -A/--after can be used to remove only files that have already been
+      deleted, -f/--force can be used to force deletion, and -Af can be used to
+      remove files from the next revision without deleting them from the working
+      directory.
+  
+      The following table details the behavior of remove for different file
+      states (columns) and option combinations (rows). The file states are Added
+      [A], Clean [C], Modified [M] and Missing [!] (as reported by "hg status").
+      The actions are Warn, Remove (from branch) and Delete (from disk):
+  
+           A C  M  !
+      --------------
+      none W RD W  R
+      -f   R RD RD R
+      -A   W W  W  R
+      -Af  R R  R  R
+  
+      Note that remove never deletes files in Added [A] state from the working
+      directory, not even if option --force is specified.
+  
+      Returns 0 on success, 1 if any warnings encountered.
+  
+  options:
+  
+   -A --after               record delete for missing files
+   -f --force               remove (and delete) file even if added or modified
+   -I --include PATTERN [+] include names matching the given patterns
+   -X --exclude PATTERN [+] exclude names matching the given patterns
+  
+  [+] marked option can be specified multiple times
+  
+  global options:
+  
+   -R --repository REPO   repository root directory or name of overlay bundle
+                          file
+      --cwd DIR           change working directory
+   -y --noninteractive    do not prompt, automatically pick the first choice for
+                          all prompts
+   -q --quiet             suppress output
+   -v --verbose           enable additional output
+      --config CONFIG [+] set/override config option (use 'section.name=value')
+      --debug             enable debugging output
+      --debugger          start debugger
+      --encoding ENCODE   set the charset encoding (default: ascii)
+      --encodingmode MODE set the charset encoding mode (default: strict)
+      --traceback         always print a traceback on exception
+      --time              time how long the command takes
+      --profile           print command execution profile
+      --version           output version information and exit
+   -h --help              display help and exit
+      --hidden            consider hidden changesets
+  
+  [+] marked option can be specified multiple times
+  
+  
+
+
+ + + + + + + + + $ "$TESTDIR/get-with-headers.py" 127.0.0.1:$HGPORT "help/revisions" + 200 Script output follows + + + + + + + + + + Help: revisions + + + +
+ + +
+ +

Help: revisions

+ + +
+  Specifying Single Revisions
+  
+      Mercurial supports several ways to specify individual revisions.
+  
+      A plain integer is treated as a revision number. Negative integers are
+      treated as sequential offsets from the tip, with -1 denoting the tip, -2
+      denoting the revision prior to the tip, and so forth.
+  
+      A 40-digit hexadecimal string is treated as a unique revision identifier.
+  
+      A hexadecimal string less than 40 characters long is treated as a unique
+      revision identifier and is referred to as a short-form identifier. A
+      short-form identifier is only valid if it is the prefix of exactly one
+      full-length identifier.
+  
+      Any other string is treated as a bookmark, tag, or branch name. A bookmark
+      is a movable pointer to a revision. A tag is a permanent name associated
+      with a revision. A branch name denotes the tipmost revision of that
+      branch. Bookmark, tag, and branch names must not contain the ":"
+      character.
+  
+      The reserved name "tip" always identifies the most recent revision.
+  
+      The reserved name "null" indicates the null revision. This is the revision
+      of an empty repository, and the parent of revision 0.
+  
+      The reserved name "." indicates the working directory parent. If no
+      working directory is checked out, it is equivalent to null. If an
+      uncommitted merge is in progress, "." is the revision of the first parent.
+  
+  
+
+
+ + + + + + + + + $ "$TESTDIR/killdaemons.py" $DAEMON_PIDS + +#endif