tests/test-help.t
changeset 12073 adfff89e6058
parent 10446 a565a2445eb5
child 12166 441a74b8def1
equal deleted inserted replaced
12072:010025717202 12073:adfff89e6058
       
     1 #!/bin/sh
       
     2 
       
     3   $ hg
       
     4   Mercurial Distributed SCM
       
     5   
       
     6   basic commands:
       
     7   
       
     8    add        add the specified files on the next commit
       
     9    annotate   show changeset information by line for each file
       
    10    clone      make a copy of an existing repository
       
    11    commit     commit the specified files or all outstanding changes
       
    12    diff       diff repository (or selected files)
       
    13    export     dump the header and diffs for one or more changesets
       
    14    forget     forget the specified files on the next commit
       
    15    init       create a new repository in the given directory
       
    16    log        show revision history of entire repository or files
       
    17    merge      merge working directory with another revision
       
    18    pull       pull changes from the specified source
       
    19    push       push changes to the specified destination
       
    20    remove     remove the specified files on the next commit
       
    21    serve      start stand-alone webserver
       
    22    status     show changed files in the working directory
       
    23    summary    summarize working directory state
       
    24    update     update working directory (or switch revisions)
       
    25   
       
    26   use "hg help" for the full list of commands or "hg -v" for details
       
    27 
       
    28   $ hg -q
       
    29    add        add the specified files on the next commit
       
    30    annotate   show changeset information by line for each file
       
    31    clone      make a copy of an existing repository
       
    32    commit     commit the specified files or all outstanding changes
       
    33    diff       diff repository (or selected files)
       
    34    export     dump the header and diffs for one or more changesets
       
    35    forget     forget the specified files on the next commit
       
    36    init       create a new repository in the given directory
       
    37    log        show revision history of entire repository or files
       
    38    merge      merge working directory with another revision
       
    39    pull       pull changes from the specified source
       
    40    push       push changes to the specified destination
       
    41    remove     remove the specified files on the next commit
       
    42    serve      start stand-alone webserver
       
    43    status     show changed files in the working directory
       
    44    summary    summarize working directory state
       
    45    update     update working directory (or switch revisions)
       
    46 
       
    47   $ hg help
       
    48   Mercurial Distributed SCM
       
    49   
       
    50   list of commands:
       
    51   
       
    52    add          add the specified files on the next commit
       
    53    addremove    add all new files, delete all missing files
       
    54    annotate     show changeset information by line for each file
       
    55    archive      create an unversioned archive of a repository revision
       
    56    backout      reverse effect of earlier changeset
       
    57    bisect       subdivision search of changesets
       
    58    branch       set or show the current branch name
       
    59    branches     list repository named branches
       
    60    bundle       create a changegroup file
       
    61    cat          output the current or given revision of files
       
    62    clone        make a copy of an existing repository
       
    63    commit       commit the specified files or all outstanding changes
       
    64    copy         mark files as copied for the next commit
       
    65    diff         diff repository (or selected files)
       
    66    export       dump the header and diffs for one or more changesets
       
    67    forget       forget the specified files on the next commit
       
    68    grep         search for a pattern in specified files and revisions
       
    69    heads        show current repository heads or show branch heads
       
    70    help         show help for a given topic or a help overview
       
    71    identify     identify the working copy or specified revision
       
    72    import       import an ordered set of patches
       
    73    incoming     show new changesets found in source
       
    74    init         create a new repository in the given directory
       
    75    locate       locate files matching specific patterns
       
    76    log          show revision history of entire repository or files
       
    77    manifest     output the current or given revision of the project manifest
       
    78    merge        merge working directory with another revision
       
    79    outgoing     show changesets not found in the destination
       
    80    parents      show the parents of the working directory or revision
       
    81    paths        show aliases for remote repositories
       
    82    pull         pull changes from the specified source
       
    83    push         push changes to the specified destination
       
    84    recover      roll back an interrupted transaction
       
    85    remove       remove the specified files on the next commit
       
    86    rename       rename files; equivalent of copy + remove
       
    87    resolve      redo merges or set/view the merge status of files
       
    88    revert       restore individual files or directories to an earlier state
       
    89    rollback     roll back the last transaction (dangerous)
       
    90    root         print the root (top) of the current working directory
       
    91    serve        start stand-alone webserver
       
    92    showconfig   show combined config settings from all hgrc files
       
    93    status       show changed files in the working directory
       
    94    summary      summarize working directory state
       
    95    tag          add one or more tags for the current or given revision
       
    96    tags         list repository tags
       
    97    tip          show the tip revision
       
    98    unbundle     apply one or more changegroup files
       
    99    update       update working directory (or switch revisions)
       
   100    verify       verify the integrity of the repository
       
   101    version      output version and copyright information
       
   102   
       
   103   additional help topics:
       
   104   
       
   105    config       Configuration Files
       
   106    dates        Date Formats
       
   107    patterns     File Name Patterns
       
   108    environment  Environment Variables
       
   109    revisions    Specifying Single Revisions
       
   110    multirevs    Specifying Multiple Revisions
       
   111    revsets      Specifying Revision Sets
       
   112    diffs        Diff Formats
       
   113    templating   Template Usage
       
   114    urls         URL Paths
       
   115    extensions   Using additional features
       
   116    hgweb        Configuring hgweb
       
   117    glossary     Glossary
       
   118   
       
   119   use "hg -v help" to show aliases and global options
       
   120 
       
   121   $ hg -q help
       
   122    add          add the specified files on the next commit
       
   123    addremove    add all new files, delete all missing files
       
   124    annotate     show changeset information by line for each file
       
   125    archive      create an unversioned archive of a repository revision
       
   126    backout      reverse effect of earlier changeset
       
   127    bisect       subdivision search of changesets
       
   128    branch       set or show the current branch name
       
   129    branches     list repository named branches
       
   130    bundle       create a changegroup file
       
   131    cat          output the current or given revision of files
       
   132    clone        make a copy of an existing repository
       
   133    commit       commit the specified files or all outstanding changes
       
   134    copy         mark files as copied for the next commit
       
   135    diff         diff repository (or selected files)
       
   136    export       dump the header and diffs for one or more changesets
       
   137    forget       forget the specified files on the next commit
       
   138    grep         search for a pattern in specified files and revisions
       
   139    heads        show current repository heads or show branch heads
       
   140    help         show help for a given topic or a help overview
       
   141    identify     identify the working copy or specified revision
       
   142    import       import an ordered set of patches
       
   143    incoming     show new changesets found in source
       
   144    init         create a new repository in the given directory
       
   145    locate       locate files matching specific patterns
       
   146    log          show revision history of entire repository or files
       
   147    manifest     output the current or given revision of the project manifest
       
   148    merge        merge working directory with another revision
       
   149    outgoing     show changesets not found in the destination
       
   150    parents      show the parents of the working directory or revision
       
   151    paths        show aliases for remote repositories
       
   152    pull         pull changes from the specified source
       
   153    push         push changes to the specified destination
       
   154    recover      roll back an interrupted transaction
       
   155    remove       remove the specified files on the next commit
       
   156    rename       rename files; equivalent of copy + remove
       
   157    resolve      redo merges or set/view the merge status of files
       
   158    revert       restore individual files or directories to an earlier state
       
   159    rollback     roll back the last transaction (dangerous)
       
   160    root         print the root (top) of the current working directory
       
   161    serve        start stand-alone webserver
       
   162    showconfig   show combined config settings from all hgrc files
       
   163    status       show changed files in the working directory
       
   164    summary      summarize working directory state
       
   165    tag          add one or more tags for the current or given revision
       
   166    tags         list repository tags
       
   167    tip          show the tip revision
       
   168    unbundle     apply one or more changegroup files
       
   169    update       update working directory (or switch revisions)
       
   170    verify       verify the integrity of the repository
       
   171    version      output version and copyright information
       
   172   
       
   173   additional help topics:
       
   174   
       
   175    config       Configuration Files
       
   176    dates        Date Formats
       
   177    patterns     File Name Patterns
       
   178    environment  Environment Variables
       
   179    revisions    Specifying Single Revisions
       
   180    multirevs    Specifying Multiple Revisions
       
   181    revsets      Specifying Revision Sets
       
   182    diffs        Diff Formats
       
   183    templating   Template Usage
       
   184    urls         URL Paths
       
   185    extensions   Using additional features
       
   186    hgweb        Configuring hgweb
       
   187    glossary     Glossary
       
   188 
       
   189 Test short command list with verbose option
       
   190 
       
   191   $ hg -v help shortlist
       
   192   Mercurial Distributed SCM \(version .*?\)
       
   193   
       
   194   Copyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others
       
   195   This is free software; see the source for copying conditions. There is NO
       
   196   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
       
   197   
       
   198   basic commands:
       
   199   
       
   200    add:
       
   201         add the specified files on the next commit
       
   202    annotate, blame:
       
   203         show changeset information by line for each file
       
   204    clone:
       
   205         make a copy of an existing repository
       
   206    commit, ci:
       
   207         commit the specified files or all outstanding changes
       
   208    diff:
       
   209         diff repository (or selected files)
       
   210    export:
       
   211         dump the header and diffs for one or more changesets
       
   212    forget:
       
   213         forget the specified files on the next commit
       
   214    init:
       
   215         create a new repository in the given directory
       
   216    log, history:
       
   217         show revision history of entire repository or files
       
   218    merge:
       
   219         merge working directory with another revision
       
   220    pull:
       
   221         pull changes from the specified source
       
   222    push:
       
   223         push changes to the specified destination
       
   224    remove, rm:
       
   225         remove the specified files on the next commit
       
   226    serve:
       
   227         start stand-alone webserver
       
   228    status, st:
       
   229         show changed files in the working directory
       
   230    summary, sum:
       
   231         summarize working directory state
       
   232    update, up, checkout, co:
       
   233         update working directory (or switch revisions)
       
   234   
       
   235   global options:
       
   236    -R --repository REPO    repository root directory or name of overlay bundle
       
   237                            file
       
   238       --cwd DIR            change working directory
       
   239    -y --noninteractive     do not prompt, assume 'yes' for any required answers
       
   240    -q --quiet              suppress output
       
   241    -v --verbose            enable additional output
       
   242       --config CONFIG [+]  set/override config option (use 'section.name=value')
       
   243       --debug              enable debugging output
       
   244       --debugger           start debugger
       
   245       --encoding ENCODE    set the charset encoding (default: ascii)
       
   246       --encodingmode MODE  set the charset encoding mode (default: strict)
       
   247       --traceback          always print a traceback on exception
       
   248       --time               time how long the command takes
       
   249       --profile            print command execution profile
       
   250       --version            output version information and exit
       
   251    -h --help               display help and exit
       
   252   
       
   253   [+] marked option can be specified multiple times
       
   254   
       
   255   use "hg help" for the full list of commands
       
   256 
       
   257   $ hg add -h
       
   258   hg add [OPTION]... [FILE]...
       
   259   
       
   260   add the specified files on the next commit
       
   261   
       
   262       Schedule files to be version controlled and added to the repository.
       
   263   
       
   264       The files will be added to the repository at the next commit. To undo an
       
   265       add before that, see "hg forget".
       
   266   
       
   267       If no names are given, add all files to the repository.
       
   268   
       
   269       Returns 0 if all files are successfully added.
       
   270   
       
   271   use "hg -v help add" to show verbose help
       
   272   
       
   273   options:
       
   274   
       
   275    -I --include PATTERN [+]  include names matching the given patterns
       
   276    -X --exclude PATTERN [+]  exclude names matching the given patterns
       
   277    -n --dry-run              do not perform actions, just print output
       
   278   
       
   279   [+] marked option can be specified multiple times
       
   280   
       
   281   use "hg -v help add" to show global options
       
   282 
       
   283 Verbose help for add
       
   284 
       
   285   $ hg add -hv
       
   286   hg add [OPTION]... [FILE]...
       
   287   
       
   288   add the specified files on the next commit
       
   289   
       
   290       Schedule files to be version controlled and added to the repository.
       
   291   
       
   292       The files will be added to the repository at the next commit. To undo an
       
   293       add before that, see "hg forget".
       
   294   
       
   295       If no names are given, add all files to the repository.
       
   296   
       
   297       An example showing how new (unknown) files are added automatically by "hg
       
   298       add":
       
   299   
       
   300         $ ls
       
   301         foo.c
       
   302         $ hg status
       
   303         ? foo.c
       
   304         $ hg add
       
   305         adding foo.c
       
   306         $ hg status
       
   307         A foo.c
       
   308   
       
   309       Returns 0 if all files are successfully added.
       
   310   
       
   311   options:
       
   312   
       
   313    -I --include PATTERN [+]  include names matching the given patterns
       
   314    -X --exclude PATTERN [+]  exclude names matching the given patterns
       
   315    -n --dry-run              do not perform actions, just print output
       
   316   
       
   317   global options:
       
   318    -R --repository REPO      repository root directory or name of overlay bundle
       
   319                              file
       
   320       --cwd DIR              change working directory
       
   321    -y --noninteractive       do not prompt, assume 'yes' for any required
       
   322                              answers
       
   323    -q --quiet                suppress output
       
   324    -v --verbose              enable additional output
       
   325       --config CONFIG [+]    set/override config option (use
       
   326                              'section.name=value')
       
   327       --debug                enable debugging output
       
   328       --debugger             start debugger
       
   329       --encoding ENCODE      set the charset encoding (default: ascii)
       
   330       --encodingmode MODE    set the charset encoding mode (default: strict)
       
   331       --traceback            always print a traceback on exception
       
   332       --time                 time how long the command takes
       
   333       --profile              print command execution profile
       
   334       --version              output version information and exit
       
   335    -h --help                 display help and exit
       
   336   
       
   337   [+] marked option can be specified multiple times
       
   338 
       
   339 Test help option with version option
       
   340 
       
   341   $ hg add -h --version
       
   342   Mercurial Distributed SCM \(version .+?\)
       
   343   
       
   344   Copyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others
       
   345   This is free software; see the source for copying conditions. There is NO
       
   346   warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
       
   347   
       
   348   hg add [OPTION]... [FILE]...
       
   349   
       
   350   add the specified files on the next commit
       
   351   
       
   352       Schedule files to be version controlled and added to the repository.
       
   353   
       
   354       The files will be added to the repository at the next commit. To undo an
       
   355       add before that, see "hg forget".
       
   356   
       
   357       If no names are given, add all files to the repository.
       
   358   
       
   359       Returns 0 if all files are successfully added.
       
   360   
       
   361   use "hg -v help add" to show verbose help
       
   362   
       
   363   options:
       
   364   
       
   365    -I --include PATTERN [+]  include names matching the given patterns
       
   366    -X --exclude PATTERN [+]  exclude names matching the given patterns
       
   367    -n --dry-run              do not perform actions, just print output
       
   368   
       
   369   [+] marked option can be specified multiple times
       
   370   
       
   371   use "hg -v help add" to show global options
       
   372 
       
   373   $ hg add --skjdfks
       
   374   hg add: option --skjdfks not recognized
       
   375   hg add [OPTION]... [FILE]...
       
   376   
       
   377   add the specified files on the next commit
       
   378   
       
   379       Schedule files to be version controlled and added to the repository.
       
   380   
       
   381       The files will be added to the repository at the next commit. To undo an
       
   382       add before that, see "hg forget".
       
   383   
       
   384       If no names are given, add all files to the repository.
       
   385   
       
   386       Returns 0 if all files are successfully added.
       
   387   
       
   388   use "hg -v help add" to show verbose help
       
   389   
       
   390   options:
       
   391   
       
   392    -I --include PATTERN [+]  include names matching the given patterns
       
   393    -X --exclude PATTERN [+]  exclude names matching the given patterns
       
   394    -n --dry-run              do not perform actions, just print output
       
   395   
       
   396   [+] marked option can be specified multiple times
       
   397   
       
   398   use "hg -v help add" to show global options
       
   399 
       
   400 Test ambiguous command help
       
   401 
       
   402   $ hg help ad
       
   403   list of commands:
       
   404   
       
   405    add         add the specified files on the next commit
       
   406    addremove   add all new files, delete all missing files
       
   407   
       
   408   use "hg -v help ad" to show aliases and global options
       
   409 
       
   410 Test command without options
       
   411 
       
   412   $ hg help verify
       
   413   hg verify
       
   414   
       
   415   verify the integrity of the repository
       
   416   
       
   417       Verify the integrity of the current repository.
       
   418   
       
   419       This will perform an extensive check of the repository's integrity,
       
   420       validating the hashes and checksums of each entry in the changelog,
       
   421       manifest, and tracked files, as well as the integrity of their crosslinks
       
   422       and indices.
       
   423   
       
   424       Returns 0 on success, 1 if errors are encountered.
       
   425   
       
   426   use "hg -v help verify" to show global options
       
   427 
       
   428   $ hg help diff
       
   429   hg diff [OPTION]... ([-c REV] | [-r REV1 [-r REV2]]) [FILE]...
       
   430   
       
   431   diff repository (or selected files)
       
   432   
       
   433       Show differences between revisions for the specified files.
       
   434   
       
   435       Differences between files are shown using the unified diff format.
       
   436   
       
   437       NOTE: diff may generate unexpected results for merges, as it will default
       
   438       to comparing against the working directory's first parent changeset if no
       
   439       revisions are specified.
       
   440   
       
   441       When two revision arguments are given, then changes are shown between
       
   442       those revisions. If only one revision is specified then that revision is
       
   443       compared to the working directory, and, when no revisions are specified,
       
   444       the working directory files are compared to its parent.
       
   445   
       
   446       Alternatively you can specify -c/--change with a revision to see the
       
   447       changes in that changeset relative to its first parent.
       
   448   
       
   449       Without the -a/--text option, diff will avoid generating diffs of files it
       
   450       detects as binary. With -a, diff will generate a diff anyway, probably
       
   451       with undesirable results.
       
   452   
       
   453       Use the -g/--git option to generate diffs in the git extended diff format.
       
   454       For more information, read "hg help diffs".
       
   455   
       
   456       Returns 0 on success.
       
   457   
       
   458   options:
       
   459   
       
   460    -r --rev REV [+]          revision
       
   461    -c --change REV           change made by revision
       
   462    -a --text                 treat all files as text
       
   463    -g --git                  use git extended diff format
       
   464       --nodates              omit dates from diff headers
       
   465    -p --show-function        show which function each change is in
       
   466       --reverse              produce a diff that undoes the changes
       
   467    -w --ignore-all-space     ignore white space when comparing lines
       
   468    -b --ignore-space-change  ignore changes in the amount of white space
       
   469    -B --ignore-blank-lines   ignore changes whose lines are all blank
       
   470    -U --unified NUM          number of lines of context to show
       
   471       --stat                 output diffstat-style summary of changes
       
   472    -I --include PATTERN [+]  include names matching the given patterns
       
   473    -X --exclude PATTERN [+]  exclude names matching the given patterns
       
   474   
       
   475   [+] marked option can be specified multiple times
       
   476   
       
   477   use "hg -v help diff" to show global options
       
   478 
       
   479   $ hg help status
       
   480   hg status [OPTION]... [FILE]...
       
   481   
       
   482   aliases: st
       
   483   
       
   484   show changed files in the working directory
       
   485   
       
   486       Show status of files in the repository. If names are given, only files
       
   487       that match are shown. Files that are clean or ignored or the source of a
       
   488       copy/move operation, are not listed unless -c/--clean, -i/--ignored,
       
   489       -C/--copies or -A/--all are given. Unless options described with "show
       
   490       only ..." are given, the options -mardu are used.
       
   491   
       
   492       Option -q/--quiet hides untracked (unknown and ignored) files unless
       
   493       explicitly requested with -u/--unknown or -i/--ignored.
       
   494   
       
   495       NOTE: status may appear to disagree with diff if permissions have changed
       
   496       or a merge has occurred. The standard diff format does not report
       
   497       permission changes and diff only reports changes relative to one merge
       
   498       parent.
       
   499   
       
   500       If one revision is given, it is used as the base revision. If two
       
   501       revisions are given, the differences between them are shown. The --change
       
   502       option can also be used as a shortcut to list the changed files of a
       
   503       revision from its first parent.
       
   504   
       
   505       The codes used to show the status of files are:
       
   506   
       
   507         M = modified
       
   508         A = added
       
   509         R = removed
       
   510         C = clean
       
   511         ! = missing (deleted by non-hg command, but still tracked)
       
   512         ? = not tracked
       
   513         I = ignored
       
   514           = origin of the previous file listed as A (added)
       
   515   
       
   516       Returns 0 on success.
       
   517   
       
   518   options:
       
   519   
       
   520    -A --all                  show status of all files
       
   521    -m --modified             show only modified files
       
   522    -a --added                show only added files
       
   523    -r --removed              show only removed files
       
   524    -d --deleted              show only deleted (but tracked) files
       
   525    -c --clean                show only files without changes
       
   526    -u --unknown              show only unknown (not tracked) files
       
   527    -i --ignored              show only ignored files
       
   528    -n --no-status            hide status prefix
       
   529    -C --copies               show source of copied files
       
   530    -0 --print0               end filenames with NUL, for use with xargs
       
   531       --rev REV [+]          show difference from revision
       
   532       --change REV           list the changed files of a revision
       
   533    -I --include PATTERN [+]  include names matching the given patterns
       
   534    -X --exclude PATTERN [+]  exclude names matching the given patterns
       
   535   
       
   536   [+] marked option can be specified multiple times
       
   537   
       
   538   use "hg -v help status" to show global options
       
   539 
       
   540   $ hg -q help status
       
   541   hg status [OPTION]... [FILE]...
       
   542   
       
   543   show changed files in the working directory
       
   544 
       
   545   $ hg help foo
       
   546   hg: unknown command 'foo'
       
   547   Mercurial Distributed SCM
       
   548   
       
   549   basic commands:
       
   550   
       
   551    add        add the specified files on the next commit
       
   552    annotate   show changeset information by line for each file
       
   553    clone      make a copy of an existing repository
       
   554    commit     commit the specified files or all outstanding changes
       
   555    diff       diff repository (or selected files)
       
   556    export     dump the header and diffs for one or more changesets
       
   557    forget     forget the specified files on the next commit
       
   558    init       create a new repository in the given directory
       
   559    log        show revision history of entire repository or files
       
   560    merge      merge working directory with another revision
       
   561    pull       pull changes from the specified source
       
   562    push       push changes to the specified destination
       
   563    remove     remove the specified files on the next commit
       
   564    serve      start stand-alone webserver
       
   565    status     show changed files in the working directory
       
   566    summary    summarize working directory state
       
   567    update     update working directory (or switch revisions)
       
   568   
       
   569   use "hg help" for the full list of commands or "hg -v" for details
       
   570 
       
   571   $ hg skjdfks
       
   572   hg: unknown command 'skjdfks'
       
   573   Mercurial Distributed SCM
       
   574   
       
   575   basic commands:
       
   576   
       
   577    add        add the specified files on the next commit
       
   578    annotate   show changeset information by line for each file
       
   579    clone      make a copy of an existing repository
       
   580    commit     commit the specified files or all outstanding changes
       
   581    diff       diff repository (or selected files)
       
   582    export     dump the header and diffs for one or more changesets
       
   583    forget     forget the specified files on the next commit
       
   584    init       create a new repository in the given directory
       
   585    log        show revision history of entire repository or files
       
   586    merge      merge working directory with another revision
       
   587    pull       pull changes from the specified source
       
   588    push       push changes to the specified destination
       
   589    remove     remove the specified files on the next commit
       
   590    serve      start stand-alone webserver
       
   591    status     show changed files in the working directory
       
   592    summary    summarize working directory state
       
   593    update     update working directory (or switch revisions)
       
   594   
       
   595   use "hg help" for the full list of commands or "hg -v" for details
       
   596 
       
   597   $ cat > helpext.py <<EOF
       
   598   > import os
       
   599   > from mercurial import commands
       
   600   > 
       
   601   > def nohelp(ui, *args, **kwargs):
       
   602   >     pass
       
   603   > 
       
   604   > cmdtable = {
       
   605   >     "nohelp": (nohelp, [], "hg nohelp"),
       
   606   > }
       
   607   > 
       
   608   > commands.norepo += ' nohelp'
       
   609   > EOF
       
   610   $ echo '[extensions]' >> $HGRCPATH
       
   611   $ echo "helpext = `pwd`/helpext.py" >> $HGRCPATH
       
   612 
       
   613 Test command with no help text
       
   614 
       
   615   $ hg help nohelp
       
   616   hg nohelp
       
   617   
       
   618   (no help text available)
       
   619   
       
   620   use "hg -v help nohelp" to show global options
       
   621 
       
   622 Test that default list of commands omits extension commands
       
   623 
       
   624   $ hg help
       
   625   Mercurial Distributed SCM
       
   626   
       
   627   list of commands:
       
   628   
       
   629    add          add the specified files on the next commit
       
   630    addremove    add all new files, delete all missing files
       
   631    annotate     show changeset information by line for each file
       
   632    archive      create an unversioned archive of a repository revision
       
   633    backout      reverse effect of earlier changeset
       
   634    bisect       subdivision search of changesets
       
   635    branch       set or show the current branch name
       
   636    branches     list repository named branches
       
   637    bundle       create a changegroup file
       
   638    cat          output the current or given revision of files
       
   639    clone        make a copy of an existing repository
       
   640    commit       commit the specified files or all outstanding changes
       
   641    copy         mark files as copied for the next commit
       
   642    diff         diff repository (or selected files)
       
   643    export       dump the header and diffs for one or more changesets
       
   644    forget       forget the specified files on the next commit
       
   645    grep         search for a pattern in specified files and revisions
       
   646    heads        show current repository heads or show branch heads
       
   647    help         show help for a given topic or a help overview
       
   648    identify     identify the working copy or specified revision
       
   649    import       import an ordered set of patches
       
   650    incoming     show new changesets found in source
       
   651    init         create a new repository in the given directory
       
   652    locate       locate files matching specific patterns
       
   653    log          show revision history of entire repository or files
       
   654    manifest     output the current or given revision of the project manifest
       
   655    merge        merge working directory with another revision
       
   656    outgoing     show changesets not found in the destination
       
   657    parents      show the parents of the working directory or revision
       
   658    paths        show aliases for remote repositories
       
   659    pull         pull changes from the specified source
       
   660    push         push changes to the specified destination
       
   661    recover      roll back an interrupted transaction
       
   662    remove       remove the specified files on the next commit
       
   663    rename       rename files; equivalent of copy + remove
       
   664    resolve      redo merges or set/view the merge status of files
       
   665    revert       restore individual files or directories to an earlier state
       
   666    rollback     roll back the last transaction (dangerous)
       
   667    root         print the root (top) of the current working directory
       
   668    serve        start stand-alone webserver
       
   669    showconfig   show combined config settings from all hgrc files
       
   670    status       show changed files in the working directory
       
   671    summary      summarize working directory state
       
   672    tag          add one or more tags for the current or given revision
       
   673    tags         list repository tags
       
   674    tip          show the tip revision
       
   675    unbundle     apply one or more changegroup files
       
   676    update       update working directory (or switch revisions)
       
   677    verify       verify the integrity of the repository
       
   678    version      output version and copyright information
       
   679   
       
   680   enabled extensions:
       
   681   
       
   682    helpext  (no help text available)
       
   683   
       
   684   additional help topics:
       
   685   
       
   686    config       Configuration Files
       
   687    dates        Date Formats
       
   688    patterns     File Name Patterns
       
   689    environment  Environment Variables
       
   690    revisions    Specifying Single Revisions
       
   691    multirevs    Specifying Multiple Revisions
       
   692    revsets      Specifying Revision Sets
       
   693    diffs        Diff Formats
       
   694    templating   Template Usage
       
   695    urls         URL Paths
       
   696    extensions   Using additional features
       
   697    hgweb        Configuring hgweb
       
   698    glossary     Glossary
       
   699   
       
   700   use "hg -v help" to show aliases and global options
       
   701 
       
   702 Test list of commands with command with no help text
       
   703 
       
   704   $ hg help helpext
       
   705   helpext extension - no help text available
       
   706   
       
   707   list of commands:
       
   708   
       
   709    nohelp   (no help text available)
       
   710   
       
   711   use "hg -v help helpext" to show aliases and global options
       
   712 
       
   713 Test a help topic
       
   714 
       
   715   $ hg help revs
       
   716   Specifying Single Revisions
       
   717   
       
   718       Mercurial supports several ways to specify individual revisions.
       
   719   
       
   720       A plain integer is treated as a revision number. Negative integers are
       
   721       treated as sequential offsets from the tip, with -1 denoting the tip, -2
       
   722       denoting the revision prior to the tip, and so forth.
       
   723   
       
   724       A 40-digit hexadecimal string is treated as a unique revision identifier.
       
   725   
       
   726       A hexadecimal string less than 40 characters long is treated as a unique
       
   727       revision identifier and is referred to as a short-form identifier. A
       
   728       short-form identifier is only valid if it is the prefix of exactly one
       
   729       full-length identifier.
       
   730   
       
   731       Any other string is treated as a tag or branch name. A tag name is a
       
   732       symbolic name associated with a revision identifier. A branch name denotes
       
   733       the tipmost revision of that branch. Tag and branch names must not contain
       
   734       the ":" character.
       
   735   
       
   736       The reserved name "tip" is a special tag that always identifies the most
       
   737       recent revision.
       
   738   
       
   739       The reserved name "null" indicates the null revision. This is the revision
       
   740       of an empty repository, and the parent of revision 0.
       
   741   
       
   742       The reserved name "." indicates the working directory parent. If no
       
   743       working directory is checked out, it is equivalent to null. If an
       
   744       uncommitted merge is in progress, "." is the revision of the first parent.