tests/test-help.t
changeset 15202 0150741caace
parent 15145 ff26712a0c50
child 15238 2d710c12ffc0
equal deleted inserted replaced
15201:2c4fdee4d1a8 15202:0150741caace
   274   
   274   
   275       If no names are given, add all files to the repository.
   275       If no names are given, add all files to the repository.
   276   
   276   
   277       Returns 0 if all files are successfully added.
   277       Returns 0 if all files are successfully added.
   278   
   278   
   279   use "hg -v help add" to show verbose help
       
   280   
       
   281   options:
   279   options:
   282   
   280   
   283    -I --include PATTERN [+] include names matching the given patterns
   281    -I --include PATTERN [+] include names matching the given patterns
   284    -X --exclude PATTERN [+] exclude names matching the given patterns
   282    -X --exclude PATTERN [+] exclude names matching the given patterns
   285    -S --subrepos            recurse into subrepositories
   283    -S --subrepos            recurse into subrepositories
   286    -n --dry-run             do not perform actions, just print output
   284    -n --dry-run             do not perform actions, just print output
   287   
   285   
   288   [+] marked option can be specified multiple times
   286   [+] marked option can be specified multiple times
   289   
   287   
   290   use "hg -v help add" to show global options
   288   use "hg -v help add" to show more info
   291 
   289 
   292 Verbose help for add
   290 Verbose help for add
   293 
   291 
   294   $ hg add -hv
   292   $ hg add -hv
   295   hg add [OPTION]... [FILE]...
   293   hg add [OPTION]... [FILE]...
   400       manifest, and tracked files, as well as the integrity of their crosslinks
   398       manifest, and tracked files, as well as the integrity of their crosslinks
   401       and indices.
   399       and indices.
   402   
   400   
   403       Returns 0 on success, 1 if errors are encountered.
   401       Returns 0 on success, 1 if errors are encountered.
   404   
   402   
   405   use "hg -v help verify" to show global options
   403   use "hg -v help verify" to show more info
   406 
   404 
   407   $ hg help diff
   405   $ hg help diff
   408   hg diff [OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...
   406   hg diff [OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...
   409   
   407   
   410   diff repository (or selected files)
   408   diff repository (or selected files)
   432   
   430   
   433       Use the -g/--git option to generate diffs in the git extended diff format.
   431       Use the -g/--git option to generate diffs in the git extended diff format.
   434       For more information, read "hg help diffs".
   432       For more information, read "hg help diffs".
   435   
   433   
   436       Returns 0 on success.
   434       Returns 0 on success.
   437   
       
   438   use "hg -v help diff" to show verbose help
       
   439   
   435   
   440   options:
   436   options:
   441   
   437   
   442    -r --rev REV [+]         revision
   438    -r --rev REV [+]         revision
   443    -c --change REV          change made by revision
   439    -c --change REV          change made by revision
   455    -X --exclude PATTERN [+] exclude names matching the given patterns
   451    -X --exclude PATTERN [+] exclude names matching the given patterns
   456    -S --subrepos            recurse into subrepositories
   452    -S --subrepos            recurse into subrepositories
   457   
   453   
   458   [+] marked option can be specified multiple times
   454   [+] marked option can be specified multiple times
   459   
   455   
   460   use "hg -v help diff" to show global options
   456   use "hg -v help diff" to show more info
   461 
   457 
   462   $ hg help status
   458   $ hg help status
   463   hg status [OPTION]... [FILE]...
   459   hg status [OPTION]... [FILE]...
   464   
   460   
   465   aliases: st
   461   aliases: st
   496         ? = not tracked
   492         ? = not tracked
   497         I = ignored
   493         I = ignored
   498           = origin of the previous file listed as A (added)
   494           = origin of the previous file listed as A (added)
   499   
   495   
   500       Returns 0 on success.
   496       Returns 0 on success.
   501   
       
   502   use "hg -v help status" to show verbose help
       
   503   
   497   
   504   options:
   498   options:
   505   
   499   
   506    -A --all                 show status of all files
   500    -A --all                 show status of all files
   507    -m --modified            show only modified files
   501    -m --modified            show only modified files
   520    -X --exclude PATTERN [+] exclude names matching the given patterns
   514    -X --exclude PATTERN [+] exclude names matching the given patterns
   521    -S --subrepos            recurse into subrepositories
   515    -S --subrepos            recurse into subrepositories
   522   
   516   
   523   [+] marked option can be specified multiple times
   517   [+] marked option can be specified multiple times
   524   
   518   
   525   use "hg -v help status" to show global options
   519   use "hg -v help status" to show more info
   526 
   520 
   527   $ hg -q help status
   521   $ hg -q help status
   528   hg status [OPTION]... [FILE]...
   522   hg status [OPTION]... [FILE]...
   529   
   523   
   530   show changed files in the working directory
   524   show changed files in the working directory
   604   $ hg help nohelp
   598   $ hg help nohelp
   605   hg nohelp
   599   hg nohelp
   606   
   600   
   607   (no help text available)
   601   (no help text available)
   608   
   602   
   609   use "hg -v help nohelp" to show global options
   603   use "hg -v help nohelp" to show more info
   610 
   604 
   611 Test that default list of commands omits extension commands
   605 Test that default list of commands omits extension commands
   612 
   606 
   613   $ hg help
   607   $ hg help
   614   Mercurial Distributed SCM
   608   Mercurial Distributed SCM