tests/test-static-http.t
author Paul Morelle <paul.morelle@octobus.net>
Sat, 14 Oct 2017 17:05:41 +0200
changeset 34825 4d5d5009bd75
parent 34661 eb586ed5d8ce
child 34925 8b95e420e248
permissions -rw-r--r--
revlog-sparse-read: add a lower-threshold for read block size The option experimental.sparse-read.min-block-size specifies the minimal size of a deltachain span, under which it won't be split by _slicechunk.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
22046
7a9cbb315d84 tests: replace exit 80 with #require
Matt Mackall <mpm@selenic.com>
parents: 17538
diff changeset
     1
#require killdaemons
1111
addcb77fe500 Add an old-http test case
mpm@selenic.com
parents:
diff changeset
     2
17020
e0d9a3bfe406 test-static-http: partially adapt for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents: 17018
diff changeset
     3
  $ hg clone http://localhost:$HGPORT/ copy
e0d9a3bfe406 test-static-http: partially adapt for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents: 17018
diff changeset
     4
  abort: * (glob)
e0d9a3bfe406 test-static-http: partially adapt for Windows
Adrian Buehlmann <adrian@cadifra.com>
parents: 17018
diff changeset
     5
  [255]
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
     6
  $ test -d copy
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
     7
  [1]
1111
addcb77fe500 Add an old-http test case
mpm@selenic.com
parents:
diff changeset
     8
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
     9
This server doesn't do range requests so it's basically only good for
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    10
one pull
1111
addcb77fe500 Add an old-http test case
mpm@selenic.com
parents:
diff changeset
    11
32940
75be14993fda cleanup: use $PYTHON to run python in many more tests
Augie Fackler <augie@google.com>
parents: 31747
diff changeset
    12
  $ $PYTHON "$TESTDIR/dumbhttp.py" -p $HGPORT --pid dumb.pid
17538
31ca918d539a test-static-http.t: enable on Windows
Patrick Mezard <patrick@mezard.eu>
parents: 17486
diff changeset
    13
  $ cat dumb.pid >> $DAEMON_PIDS
13956
ffb5c09ba822 tests: remove redundant mkdir
Martin Geisler <mg@lazybytes.net>
parents: 13440
diff changeset
    14
  $ hg init remote
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    15
  $ cd remote
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    16
  $ echo foo > bar
13209
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    17
  $ echo c2 > '.dotfile with spaces'
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    18
  $ hg add
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    19
  adding .dotfile with spaces
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    20
  adding bar
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    21
  $ hg commit -m"test"
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    22
  $ hg tip
13209
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    23
  changeset:   0:02770d679fb8
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    24
  tag:         tip
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    25
  user:        test
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    26
  date:        Thu Jan 01 00:00:00 1970 +0000
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    27
  summary:     test
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    28
  
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    29
  $ cd ..
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    30
  $ hg clone static-http://localhost:$HGPORT/remote local
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    31
  requesting all changes
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    32
  adding changesets
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    33
  adding manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    34
  adding file changes
13209
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    35
  added 1 changesets with 2 changes to 2 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 33604
diff changeset
    36
  new changesets 02770d679fb8
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    37
  updating to branch default
13209
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    38
  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    39
  $ cd local
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    40
  $ hg verify
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    41
  checking changesets
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    42
  checking manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    43
  crosschecking files in changesets and manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    44
  checking files
13209
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    45
  2 files, 1 changesets, 2 total revisions
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    46
  $ cat bar
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    47
  foo
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    48
  $ cd ../remote
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    49
  $ echo baz > quux
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    50
  $ hg commit -A -mtest2
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    51
  adding quux
1111
addcb77fe500 Add an old-http test case
mpm@selenic.com
parents:
diff changeset
    52
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    53
check for HTTP opener failures when cachefile does not exist
1111
addcb77fe500 Add an old-http test case
mpm@selenic.com
parents:
diff changeset
    54
13272
5ccdca7df211 move tags.cache and branchheads.cache to a collected cache folder .hg/cache/
jfh <jason@jasonfharris.com>
parents: 13209
diff changeset
    55
  $ rm .hg/cache/*
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    56
  $ cd ../local
30234
34a5f6c66bc5 tests: invoke printenv.py via sh -c for test portability
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 29514
diff changeset
    57
  $ cat >> .hg/hgrc <<EOF
34a5f6c66bc5 tests: invoke printenv.py via sh -c for test portability
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 29514
diff changeset
    58
  > [hooks]
34a5f6c66bc5 tests: invoke printenv.py via sh -c for test portability
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 29514
diff changeset
    59
  > changegroup = sh -c "printenv.py changegroup"
34a5f6c66bc5 tests: invoke printenv.py via sh -c for test portability
FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
parents: 29514
diff changeset
    60
  > EOF
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    61
  $ hg pull
12643
d08bb64888bc tests: reintroduce ":$HGPORT" in test output
Mads Kiilerich <mads@kiilerich.com>
parents: 12491
diff changeset
    62
  pulling from static-http://localhost:$HGPORT/remote
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    63
  searching for changes
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    64
  adding changesets
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    65
  adding manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    66
  adding file changes
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    67
  added 1 changesets with 1 changes to 1 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 33604
diff changeset
    68
  new changesets 4ac2e3648604
31747
aff7b32b3c05 hook: add hook name information to external hook
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 31746
diff changeset
    69
  changegroup hook: HG_HOOKNAME=changegroup HG_HOOKTYPE=changegroup HG_NODE=4ac2e3648604439c580c69b09ec9d93a88d93432 HG_NODE_LAST=4ac2e3648604439c580c69b09ec9d93a88d93432 HG_SOURCE=pull HG_TXNID=TXN:$ID$ HG_URL=http://localhost:$HGPORT/remote
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    70
  (run 'hg update' to get a working copy)
2673
109a22f5434a hooks: add url to changegroup, incoming, prechangegroup, pretxnchangegroup hooks
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2572
diff changeset
    71
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    72
trying to push
2673
109a22f5434a hooks: add url to changegroup, incoming, prechangegroup, pretxnchangegroup hooks
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2572
diff changeset
    73
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    74
  $ hg update
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    75
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    76
  $ echo more foo >> bar
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    77
  $ hg commit -m"test"
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    78
  $ hg push
12643
d08bb64888bc tests: reintroduce ":$HGPORT" in test output
Mads Kiilerich <mads@kiilerich.com>
parents: 12491
diff changeset
    79
  pushing to static-http://localhost:$HGPORT/remote
17193
1d710fe5ee0e peer: introduce canpush and improve error message
Sune Foldager <cryo@cyanite.org>
parents: 17020
diff changeset
    80
  abort: destination does not support push
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    81
  [255]
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    82
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    83
trying clone -r
1111
addcb77fe500 Add an old-http test case
mpm@selenic.com
parents:
diff changeset
    84
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    85
  $ cd ..
17486
73e3e368bd42 spelling: doesn't/does not
timeless@mozdev.org
parents: 17260
diff changeset
    86
  $ hg clone -r doesnotexist static-http://localhost:$HGPORT/remote local0
73e3e368bd42 spelling: doesn't/does not
timeless@mozdev.org
parents: 17260
diff changeset
    87
  abort: unknown revision 'doesnotexist'!
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    88
  [255]
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    89
  $ hg clone -r 0 static-http://localhost:$HGPORT/remote local0
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    90
  adding changesets
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    91
  adding manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    92
  adding file changes
13209
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    93
  added 1 changesets with 2 changes to 2 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 33604
diff changeset
    94
  new changesets 02770d679fb8
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    95
  updating to branch default
13209
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    96
  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
7005
7739b61897df do not pretend to lock static-http repositories (issue994)
Martin Geisler <mg@daimi.au.dk>
parents: 6028
diff changeset
    97
22183
4dd9f606d0a6 tests: fixup issue markers to make check-commit happy
Matt Mackall <mpm@selenic.com>
parents: 22046
diff changeset
    98
test with "/" URI (issue747) and subrepo
11066
26abd91d9e84 static-http: mimic more closely localrepo (issue2164: allow clone -r )
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10398
diff changeset
    99
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   100
  $ hg init
13440
286a3720d472 statichttprepo: don't modify localrepo class variables
Mads Kiilerich <mads@kiilerich.com>
parents: 13439
diff changeset
   101
  $ hg init sub
17260
e432fb4b4221 tag: don't allow tagging the null revision (issue1915)
Brad Hall <bhall@fb.com>
parents: 17193
diff changeset
   102
  $ touch sub/test
e432fb4b4221 tag: don't allow tagging the null revision (issue1915)
Brad Hall <bhall@fb.com>
parents: 17193
diff changeset
   103
  $ hg -R sub commit -A -m "test"
e432fb4b4221 tag: don't allow tagging the null revision (issue1915)
Brad Hall <bhall@fb.com>
parents: 17193
diff changeset
   104
  adding test
13440
286a3720d472 statichttprepo: don't modify localrepo class variables
Mads Kiilerich <mads@kiilerich.com>
parents: 13439
diff changeset
   105
  $ hg -R sub tag not-empty
286a3720d472 statichttprepo: don't modify localrepo class variables
Mads Kiilerich <mads@kiilerich.com>
parents: 13439
diff changeset
   106
  $ echo sub=sub > .hgsub
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   107
  $ echo a > a
13440
286a3720d472 statichttprepo: don't modify localrepo class variables
Mads Kiilerich <mads@kiilerich.com>
parents: 13439
diff changeset
   108
  $ hg add a .hgsub
286a3720d472 statichttprepo: don't modify localrepo class variables
Mads Kiilerich <mads@kiilerich.com>
parents: 13439
diff changeset
   109
  $ hg -q ci -ma
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   110
  $ hg clone static-http://localhost:$HGPORT/ local2
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   111
  requesting all changes
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   112
  adding changesets
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   113
  adding manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   114
  adding file changes
13440
286a3720d472 statichttprepo: don't modify localrepo class variables
Mads Kiilerich <mads@kiilerich.com>
parents: 13439
diff changeset
   115
  added 1 changesets with 3 changes to 3 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 33604
diff changeset
   116
  new changesets a9ebfbe8e587
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   117
  updating to branch default
14281
ccb7240acf32 subrepo: create subrepos using clone instead of pull
Martin Geisler <mg@aragost.com>
parents: 13956
diff changeset
   118
  cloning subrepo sub from static-http://localhost:$HGPORT/sub
13440
286a3720d472 statichttprepo: don't modify localrepo class variables
Mads Kiilerich <mads@kiilerich.com>
parents: 13439
diff changeset
   119
  requesting all changes
286a3720d472 statichttprepo: don't modify localrepo class variables
Mads Kiilerich <mads@kiilerich.com>
parents: 13439
diff changeset
   120
  adding changesets
286a3720d472 statichttprepo: don't modify localrepo class variables
Mads Kiilerich <mads@kiilerich.com>
parents: 13439
diff changeset
   121
  adding manifests
286a3720d472 statichttprepo: don't modify localrepo class variables
Mads Kiilerich <mads@kiilerich.com>
parents: 13439
diff changeset
   122
  adding file changes
17260
e432fb4b4221 tag: don't allow tagging the null revision (issue1915)
Brad Hall <bhall@fb.com>
parents: 17193
diff changeset
   123
  added 2 changesets with 2 changes to 2 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 33604
diff changeset
   124
  new changesets be090ea66256:322ea90975df
13440
286a3720d472 statichttprepo: don't modify localrepo class variables
Mads Kiilerich <mads@kiilerich.com>
parents: 13439
diff changeset
   125
  3 files updated, 0 files merged, 0 files removed, 0 files unresolved
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   126
  $ cd local2
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   127
  $ hg verify
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   128
  checking changesets
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   129
  checking manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   130
  crosschecking files in changesets and manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   131
  checking files
13440
286a3720d472 statichttprepo: don't modify localrepo class variables
Mads Kiilerich <mads@kiilerich.com>
parents: 13439
diff changeset
   132
  3 files, 1 changesets, 3 total revisions
25591
f1d46075b13a verify: check the subrepository references in .hgsubstate
Matt Harbison <matt_harbison@yahoo.com>
parents: 25478
diff changeset
   133
  checking subrepo links
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   134
  $ cat a
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   135
  a
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   136
  $ hg paths
12643
d08bb64888bc tests: reintroduce ":$HGPORT" in test output
Mads Kiilerich <mads@kiilerich.com>
parents: 12491
diff changeset
   137
  default = static-http://localhost:$HGPORT/
5316
598dae804a5f Test static-http calls on '/' URI (issue 747)
Patrick Mezard <pmezard@gmail.com>
parents: 4290
diff changeset
   138
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   139
test with empty repo (issue965)
6028
6605a03cbf87 make static-http work with empty repos (issue965)
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 5384
diff changeset
   140
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   141
  $ cd ..
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   142
  $ hg init remotempty
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   143
  $ hg clone static-http://localhost:$HGPORT/remotempty local3
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   144
  no changes found
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   145
  updating to branch default
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   146
  0 files updated, 0 files merged, 0 files removed, 0 files unresolved
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   147
  $ cd local3
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   148
  $ hg verify
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   149
  checking changesets
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   150
  checking manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   151
  crosschecking files in changesets and manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   152
  checking files
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   153
  0 files, 0 changesets, 0 total revisions
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   154
  $ hg paths
12643
d08bb64888bc tests: reintroduce ":$HGPORT" in test output
Mads Kiilerich <mads@kiilerich.com>
parents: 12491
diff changeset
   155
  default = static-http://localhost:$HGPORT/remotempty
6028
6605a03cbf87 make static-http work with empty repos (issue965)
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 5384
diff changeset
   156
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   157
test with non-repo
6028
6605a03cbf87 make static-http work with empty repos (issue965)
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 5384
diff changeset
   158
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   159
  $ cd ..
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   160
  $ mkdir notarepo
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   161
  $ hg clone static-http://localhost:$HGPORT/notarepo local3
12643
d08bb64888bc tests: reintroduce ":$HGPORT" in test output
Mads Kiilerich <mads@kiilerich.com>
parents: 12491
diff changeset
   162
  abort: 'http://localhost:$HGPORT/notarepo' does not appear to be an hg repository!
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   163
  [255]
33603
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   164
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   165
Clone with tags and branches works
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   166
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   167
  $ hg init remote-with-names
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   168
  $ cd remote-with-names
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   169
  $ echo 0 > foo
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   170
  $ hg -q commit -A -m initial
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   171
  $ echo 1 > foo
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   172
  $ hg commit -m 'commit 1'
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   173
  $ hg -q up 0
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   174
  $ hg branch mybranch
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   175
  marked working directory as branch mybranch
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   176
  (branches are permanent and global, did you want a bookmark?)
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   177
  $ echo 2 > foo
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   178
  $ hg commit -m 'commit 2 (mybranch)'
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   179
  $ hg tag -r 1 'default-tag'
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   180
  $ hg tag -r 2 'branch-tag'
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   181
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   182
  $ cd ..
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   183
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   184
  $ hg clone static-http://localhost:$HGPORT/remote-with-names local-with-names
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   185
  requesting all changes
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   186
  adding changesets
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   187
  adding manifests
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   188
  adding file changes
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   189
  added 5 changesets with 5 changes to 2 files (+1 heads)
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 33604
diff changeset
   190
  new changesets 68986213bd44:0c325bd2b5a7
33603
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   191
  updating to branch default
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   192
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   193
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   194
Clone a specific branch works
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   195
33604
8b00c723cee1 statichttprepo: implement wlock() (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33603
diff changeset
   196
  $ hg clone -r mybranch static-http://localhost:$HGPORT/remote-with-names local-with-names-branch
8b00c723cee1 statichttprepo: implement wlock() (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33603
diff changeset
   197
  adding changesets
8b00c723cee1 statichttprepo: implement wlock() (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33603
diff changeset
   198
  adding manifests
8b00c723cee1 statichttprepo: implement wlock() (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33603
diff changeset
   199
  adding file changes
8b00c723cee1 statichttprepo: implement wlock() (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33603
diff changeset
   200
  added 4 changesets with 4 changes to 2 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 33604
diff changeset
   201
  new changesets 68986213bd44:0c325bd2b5a7
33604
8b00c723cee1 statichttprepo: implement wlock() (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33603
diff changeset
   202
  updating to branch mybranch
8b00c723cee1 statichttprepo: implement wlock() (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33603
diff changeset
   203
  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
33603
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   204
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   205
Clone a specific tag works
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   206
33604
8b00c723cee1 statichttprepo: implement wlock() (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33603
diff changeset
   207
  $ hg clone -r default-tag static-http://localhost:$HGPORT/remote-with-names local-with-names-tag
8b00c723cee1 statichttprepo: implement wlock() (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33603
diff changeset
   208
  adding changesets
8b00c723cee1 statichttprepo: implement wlock() (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33603
diff changeset
   209
  adding manifests
8b00c723cee1 statichttprepo: implement wlock() (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33603
diff changeset
   210
  adding file changes
8b00c723cee1 statichttprepo: implement wlock() (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33603
diff changeset
   211
  added 2 changesets with 2 changes to 1 files
34661
eb586ed5d8ce transaction-summary: show the range of new revisions upon pull/unbundle (BC)
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 33604
diff changeset
   212
  new changesets 68986213bd44:4ee3fcef1c80
33604
8b00c723cee1 statichttprepo: implement wlock() (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33603
diff changeset
   213
  updating to branch default
8b00c723cee1 statichttprepo: implement wlock() (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33603
diff changeset
   214
  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
33603
075823a6161b test: add tests for branches and tags with static http repo (issue5613)
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32940
diff changeset
   215
25474
8c14f87bd0ae tests: drop DAEMON_PIDS from killdaemons calls
Matt Mackall <mpm@selenic.com>
parents: 25472
diff changeset
   216
  $ killdaemons.py