tests/test-qrecord.t
changeset 13936 f4e4faa92939
parent 13935 6e6d19738df9
child 13950 14d0553bd48b
equal deleted inserted replaced
13935:6e6d19738df9 13936:f4e4faa92939
     5 
     5 
     6 help record (no record)
     6 help record (no record)
     7 
     7 
     8   $ hg help record
     8   $ hg help record
     9   record extension - commands to interactively select changes for commit/qrefresh
     9   record extension - commands to interactively select changes for commit/qrefresh
       
    10   
       
    11   use "hg help extensions" for information on enabling extensions
       
    12 
       
    13 help qrecord (no record)
       
    14 
       
    15   $ hg help qrecord
       
    16   'qrecord' is provided by the following extension:
       
    17   
       
    18       record  commands to interactively select changes for commit/qrefresh
    10   
    19   
    11   use "hg help extensions" for information on enabling extensions
    20   use "hg help extensions" for information on enabling extensions
    12 
    21 
    13   $ echo "[extensions]"     >> $HGRCPATH
    22   $ echo "[extensions]"     >> $HGRCPATH
    14   $ echo "record="          >> $HGRCPATH
    23   $ echo "record="          >> $HGRCPATH
    61   use "hg -v help record" to show global options
    70   use "hg -v help record" to show global options
    62 
    71 
    63 help (no mq, so no qrecord)
    72 help (no mq, so no qrecord)
    64 
    73 
    65   $ hg help qrecord
    74   $ hg help qrecord
    66   hg: unknown command 'qrecord'
    75   hg qrecord [OPTION]... PATCH [FILE]...
    67   Mercurial Distributed SCM
    76   
    68   
    77   interactively record a new patch
    69   basic commands:
    78   
    70   
    79       See "hg help qnew" & "hg help record" for more information and usage.
    71    add        add the specified files on the next commit
    80   
    72    annotate   show changeset information by line for each file
    81   use "hg -v help qrecord" to show global options
    73    clone      make a copy of an existing repository
    82 
    74    commit     commit the specified files or all outstanding changes
    83   $ hg init a
    75    diff       diff repository (or selected files)
    84 
    76    export     dump the header and diffs for one or more changesets
    85 qrecord (mq not present)
    77    forget     forget the specified files on the next commit
    86 
    78    init       create a new repository in the given directory
    87   $ hg -R a qrecord
    79    log        show revision history of entire repository or files
    88   hg qrecord: invalid arguments
    80    merge      merge working directory with another revision
    89   hg qrecord [OPTION]... PATCH [FILE]...
    81    pull       pull changes from the specified source
    90   
    82    push       push changes to the specified destination
    91   interactively record a new patch
    83    remove     remove the specified files on the next commit
    92   
    84    serve      start stand-alone webserver
    93       See "hg help qnew" & "hg help record" for more information and usage.
    85    status     show changed files in the working directory
    94   
    86    summary    summarize working directory state
    95   use "hg -v help qrecord" to show global options
    87    update     update working directory (or switch revisions)
    96   [255]
    88   
    97 
    89   use "hg help" for the full list of commands or "hg -v" for details
    98 qrecord patch (mq not present)
       
    99 
       
   100   $ hg -R a qrecord patch
       
   101   abort: 'mq' extension not loaded
    90   [255]
   102   [255]
    91 
   103 
    92 help (mq present)
   104 help (mq present)
    93 
   105 
    94   $ echo "mq="              >> $HGRCPATH
   106   $ echo "mq="              >> $HGRCPATH
   114   
   126   
   115   [+] marked option can be specified multiple times
   127   [+] marked option can be specified multiple times
   116   
   128   
   117   use "hg -v help qrecord" to show global options
   129   use "hg -v help qrecord" to show global options
   118 
   130 
   119   $ hg init a
       
   120   $ cd a
   131   $ cd a
   121 
   132 
   122 Base commit
   133 Base commit
   123 
   134 
   124   $ cat > 1.txt <<EOF
   135   $ cat > 1.txt <<EOF