tests/test-help.t
changeset 22110 26f7c8033bed
parent 21961 af15de6775c7
child 22111 aa5e256839d5
equal deleted inserted replaced
22109:feab93a24e81 22110:26f7c8033bed
   351    -S --subrepos            recurse into subrepositories
   351    -S --subrepos            recurse into subrepositories
   352    -n --dry-run             do not perform actions, just print output
   352    -n --dry-run             do not perform actions, just print output
   353   
   353   
   354   [+] marked option can be specified multiple times
   354   [+] marked option can be specified multiple times
   355   
   355   
   356   use "hg -v help add" to show more complete help and the global options
   356   (some details hidden, use --verbose to show complete help)
   357 
   357 
   358 Verbose help for add
   358 Verbose help for add
   359 
   359 
   360   $ hg add -hv
   360   $ hg add -hv
   361   hg add [OPTION]... [FILE]...
   361   hg add [OPTION]... [FILE]...
   470       Please see http://mercurial.selenic.com/wiki/RepositoryCorruption for more
   470       Please see http://mercurial.selenic.com/wiki/RepositoryCorruption for more
   471       information about recovery from corruption of the repository.
   471       information about recovery from corruption of the repository.
   472   
   472   
   473       Returns 0 on success, 1 if errors are encountered.
   473       Returns 0 on success, 1 if errors are encountered.
   474   
   474   
   475   use "hg -v help verify" to show the global options
   475   (some details hidden, use --verbose to show complete help)
   476 
   476 
   477   $ hg help diff
   477   $ hg help diff
   478   hg diff [OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...
   478   hg diff [OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...
   479   
   479   
   480   diff repository (or selected files)
   480   diff repository (or selected files)
   523    -X --exclude PATTERN [+] exclude names matching the given patterns
   523    -X --exclude PATTERN [+] exclude names matching the given patterns
   524    -S --subrepos            recurse into subrepositories
   524    -S --subrepos            recurse into subrepositories
   525   
   525   
   526   [+] marked option can be specified multiple times
   526   [+] marked option can be specified multiple times
   527   
   527   
   528   use "hg -v help diff" to show more complete help and the global options
   528   (some details hidden, use --verbose to show complete help)
   529 
   529 
   530   $ hg help status
   530   $ hg help status
   531   hg status [OPTION]... [FILE]...
   531   hg status [OPTION]... [FILE]...
   532   
   532   
   533   aliases: st
   533   aliases: st
   586    -X --exclude PATTERN [+] exclude names matching the given patterns
   586    -X --exclude PATTERN [+] exclude names matching the given patterns
   587    -S --subrepos            recurse into subrepositories
   587    -S --subrepos            recurse into subrepositories
   588   
   588   
   589   [+] marked option can be specified multiple times
   589   [+] marked option can be specified multiple times
   590   
   590   
   591   use "hg -v help status" to show more complete help and the global options
   591   (some details hidden, use --verbose to show complete help)
   592 
   592 
   593   $ hg -q help status
   593   $ hg -q help status
   594   hg status [OPTION]... [FILE]...
   594   hg status [OPTION]... [FILE]...
   595   
   595   
   596   show changed files in the working directory
   596   show changed files in the working directory
   661       --longdesc VALUE xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
   661       --longdesc VALUE xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
   662                        xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (default: 3)
   662                        xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (default: 3)
   663    -n --               normal desc
   663    -n --               normal desc
   664       --newline VALUE  line1 line2
   664       --newline VALUE  line1 line2
   665   
   665   
   666   use "hg -v help nohelp" to show the global options
   666   (some details hidden, use --verbose to show complete help)
   667 
   667 
   668   $ hg help -k nohelp
   668   $ hg help -k nohelp
   669   Commands:
   669   Commands:
   670   
   670   
   671    nohelp hg nohelp
   671    nohelp hg nohelp
   841   
   841   
   842   (no help text available)
   842   (no help text available)
   843   
   843   
   844   options:
   844   options:
   845   
   845   
   846   use "hg -v help debugoptDEP" to show the global options
   846   (some details hidden, use --verbose to show complete help)
   847 
   847 
   848 test deprecated option is shown with -v
   848 test deprecated option is shown with -v
   849   $ hg help -v debugoptDEP | grep dopt
   849   $ hg help -v debugoptDEP | grep dopt
   850     --dopt option is DEPRECATED
   850     --dopt option is DEPRECATED
   851 
   851 
   857   
   857   
   858   (*) (glob)
   858   (*) (glob)
   859   
   859   
   860   flaggor:
   860   flaggor:
   861   
   861   
   862   *"hg -v help debugoptDEP"* (glob)
   862   (some details hidden, use --verbose to show complete help)
   863 #endif
   863 #endif
   864 
   864 
   865 Test commands that collide with topics (issue4240)
   865 Test commands that collide with topics (issue4240)
   866 
   866 
   867   $ hg config -hq
   867   $ hg config -hq