tests/test-commandserver.py.out
changeset 22569 a763159159c7
parent 22568 78b99149ed8a
child 22570 db497a1ef1c1
equal deleted inserted replaced
22568:78b99149ed8a 22569:a763159159c7
     1 
       
     2 testing hellomessage:
       
     3 
       
     4 o, 'capabilities: getencoding runcommand\nencoding: ***'
       
     5  runcommand id
       
     6 000000000000 tip
       
     7 
       
     8 testing unknowncommand:
       
     9 
       
    10 abort: unknown command unknowncommand
       
    11 
       
    12 testing checkruncommand:
       
    13 
       
    14  runcommand 
       
    15 Mercurial Distributed SCM
       
    16 
       
    17 basic commands:
       
    18 
       
    19  add           add the specified files on the next commit
       
    20  annotate      show changeset information by line for each file
       
    21  clone         make a copy of an existing repository
       
    22  commit        commit the specified files or all outstanding changes
       
    23  diff          diff repository (or selected files)
       
    24  export        dump the header and diffs for one or more changesets
       
    25  forget        forget the specified files on the next commit
       
    26  init          create a new repository in the given directory
       
    27  log           show revision history of entire repository or files
       
    28  merge         merge working directory with another revision
       
    29  pull          pull changes from the specified source
       
    30  push          push changes to the specified destination
       
    31  remove        remove the specified files on the next commit
       
    32  serve         start stand-alone webserver
       
    33  status        show changed files in the working directory
       
    34  summary       summarize working directory state
       
    35  update        update working directory (or switch revisions)
       
    36 
       
    37 (use "hg help" for the full list of commands or "hg -v" for details)
       
    38  runcommand id --quiet
       
    39 000000000000
       
    40  runcommand id
       
    41 000000000000 tip
       
    42  runcommand id --config ui.quiet=True
       
    43 000000000000
       
    44  runcommand id
       
    45 000000000000 tip
       
    46  runcommand id -runknown
       
    47 abort: unknown revision 'unknown'!
       
    48  [255]
       
    49 
       
    50 testing inputeof:
       
    51 
       
    52 server exit code = 1
       
    53 
       
    54 testing serverinput:
       
    55 
       
    56  runcommand import -
       
    57 applying patch from stdin
       
    58  runcommand log
       
    59 changeset:   0:eff892de26ec
       
    60 tag:         tip
       
    61 user:        test
       
    62 date:        Thu Jan 01 00:00:00 1970 +0000
       
    63 summary:     1
       
    64 
       
    65 
       
    66 testing cwd:
       
    67 
       
    68  runcommand --cwd foo st bar
       
    69 ? bar
       
    70  runcommand st foo/bar
       
    71 ? foo/bar
       
    72 
       
    73 testing localhgrc:
       
    74 
       
    75  runcommand showconfig
       
    76 bundle.mainreporoot=$TESTTMP/repo
       
    77 defaults.backout=-d "0 0"
       
    78 defaults.commit=-d "0 0"
       
    79 defaults.shelve=--date "0 0"
       
    80 defaults.tag=-d "0 0"
       
    81 ui.slash=True
       
    82 ui.interactive=False
       
    83 ui.mergemarkers=detailed
       
    84 ui.foo=bar
       
    85 ui.nontty=true
       
    86  runcommand init foo
       
    87  runcommand -R foo showconfig ui defaults
       
    88 defaults.backout=-d "0 0"
       
    89 defaults.commit=-d "0 0"
       
    90 defaults.shelve=--date "0 0"
       
    91 defaults.tag=-d "0 0"
       
    92 ui.slash=True
       
    93 ui.interactive=False
       
    94 ui.mergemarkers=detailed
       
    95 ui.nontty=true
       
    96 
       
    97 testing hookoutput:
       
    98 
       
    99  runcommand --config hooks.pre-identify=python:test-commandserver.hook id
       
   100 hook talking
       
   101 now try to read something: 'some input'
       
   102 eff892de26ec tip
       
   103 
       
   104 testing outsidechanges:
       
   105 
       
   106  runcommand status
       
   107 M a
       
   108  runcommand tip
       
   109 changeset:   1:d3a0a68be6de
       
   110 tag:         tip
       
   111 user:        test
       
   112 date:        Thu Jan 01 00:00:00 1970 +0000
       
   113 summary:     2
       
   114 
       
   115  runcommand status
       
   116 
       
   117 testing bookmarks:
       
   118 
       
   119  runcommand bookmarks
       
   120 no bookmarks set
       
   121  runcommand bookmarks
       
   122    bm1                       1:d3a0a68be6de
       
   123    bm2                       1:d3a0a68be6de
       
   124  runcommand bookmarks
       
   125  * bm1                       1:d3a0a68be6de
       
   126    bm2                       1:d3a0a68be6de
       
   127  runcommand bookmarks bm3
       
   128  runcommand commit -Amm
       
   129  runcommand bookmarks
       
   130    bm1                       1:d3a0a68be6de
       
   131    bm2                       1:d3a0a68be6de
       
   132  * bm3                       2:aef17e88f5f0
       
   133 
       
   134 testing tagscache:
       
   135 
       
   136  runcommand id -t -r 0
       
   137 
       
   138  runcommand id -t -r 0
       
   139 foo
       
   140 
       
   141 testing setphase:
       
   142 
       
   143  runcommand phase -r .
       
   144 3: draft
       
   145  runcommand phase -r .
       
   146 3: public
       
   147 
       
   148 testing rollback:
       
   149 
       
   150  runcommand phase -r . -p
       
   151 no phases changed
       
   152  [1]
       
   153  runcommand commit -Am.
       
   154  runcommand rollback
       
   155 repository tip rolled back to revision 3 (undo commit)
       
   156 working directory now based on revision 3
       
   157  runcommand phase -r .
       
   158 3: public
       
   159 
       
   160 testing branch:
       
   161 
       
   162  runcommand branch
       
   163 default
       
   164 marked working directory as branch foo
       
   165 (branches are permanent and global, did you want a bookmark?)
       
   166  runcommand branch
       
   167 foo
       
   168 marked working directory as branch default
       
   169 (branches are permanent and global, did you want a bookmark?)
       
   170 
       
   171 testing hgignore:
       
   172 
       
   173  runcommand commit -Am.
       
   174 adding .hgignore
       
   175  runcommand status -i -u
       
   176 I ignored-file
       
   177 
       
   178 testing phasecacheafterstrip:
       
   179 
       
   180  runcommand update -C 0
       
   181 1 files updated, 0 files merged, 2 files removed, 0 files unresolved
       
   182 (leaving bookmark bm3)
       
   183  runcommand commit -Am. a
       
   184 created new head
       
   185  runcommand log -Gq
       
   186 @  5:731265503d86
       
   187 |
       
   188 | o  4:7966c8e3734d
       
   189 | |
       
   190 | o  3:b9b85890c400
       
   191 | |
       
   192 | o  2:aef17e88f5f0
       
   193 | |
       
   194 | o  1:d3a0a68be6de
       
   195 |/
       
   196 o  0:eff892de26ec
       
   197 
       
   198  runcommand phase -p .
       
   199  runcommand phase .
       
   200 5: public
       
   201  runcommand branches
       
   202 default                        1:731265503d86
       
   203 
       
   204 testing obsolete:
       
   205 
       
   206  runcommand up null
       
   207 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
       
   208  runcommand phase -df tip
       
   209  runcommand log --hidden
       
   210 changeset:   1:731265503d86
       
   211 tag:         tip
       
   212 user:        test
       
   213 date:        Thu Jan 01 00:00:00 1970 +0000
       
   214 summary:     .
       
   215 
       
   216 changeset:   0:eff892de26ec
       
   217 bookmark:    bm1
       
   218 bookmark:    bm2
       
   219 bookmark:    bm3
       
   220 user:        test
       
   221 date:        Thu Jan 01 00:00:00 1970 +0000
       
   222 summary:     1
       
   223 
       
   224  runcommand log
       
   225 changeset:   0:eff892de26ec
       
   226 bookmark:    bm1
       
   227 bookmark:    bm2
       
   228 bookmark:    bm3
       
   229 tag:         tip
       
   230 user:        test
       
   231 date:        Thu Jan 01 00:00:00 1970 +0000
       
   232 summary:     1
       
   233 
       
   234 
       
   235 testing mqoutsidechanges:
       
   236 
       
   237  runcommand qapplied
       
   238  runcommand qapplied
       
   239 0.diff
       
   240  runcommand qpop --all
       
   241 popping 0.diff
       
   242 patch queue now empty
       
   243  runcommand qqueue --active
       
   244 foo
       
   245 
       
   246 testing getpass:
       
   247 
       
   248  runcommand debuggetpass --config ui.interactive=True
       
   249 password: 1234
       
   250 
       
   251 testing hellomessage:
       
   252 
       
   253 o, 'capabilities: getencoding runcommand\nencoding: ***'
       
   254  runcommand id
       
   255 abort: there is no Mercurial repository here (.hg not found)
       
   256  [255]
       
   257 
       
   258 testing startwithoutrepo:
       
   259 
       
   260  runcommand init repo2
       
   261  runcommand id -R repo2
       
   262 000000000000 tip