tests/test-static-http.t
author jfh <jason@jasonfharris.com>
Tue, 04 Jan 2011 06:29:08 +0100
changeset 13272 5ccdca7df211
parent 13209 501f979d26b6
child 13405 682edefe7dbb
permissions -rw-r--r--
move tags.cache and branchheads.cache to a collected cache folder .hg/cache/ The generation of cache files like tags.cache and branchheads.cache is not an actual reflection of things changing in the whole of the .hg directory (like eg a commit or a rebase or something) but instead these cache files are just part of bookkeeping. As such its convienant to allow various clients to ignore file events to do with these cache files which would otherwise cause a double refresh. Eg one refresh might occur after a commit, but the act of refreshing after the commit would cause Mercurial to generate a new branchheads.cache which would then cause a second refresh, for clients. However if these cache files are moved into a directory like eg .hg/cache/ then GUI clients on OSX (and possibly other platforms) can happily ignore file events in this cache directory.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1111
addcb77fe500 Add an old-http test case
mpm@selenic.com
parents:
diff changeset
     1
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
     2
  $ cp "$TESTDIR"/printenv.py .
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
     3
  $ hg clone http://localhost:$HGPORT/ copy
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
     4
  abort: error: Connection refused
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
     5
  [255]
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
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    12
  $ cat > dumb.py <<EOF
13208
b6693876c250 test-static-http.t: get kill actually working
Adrian Buehlmann <adrian@cadifra.com>
parents: 12847
diff changeset
    13
  > import BaseHTTPServer, SimpleHTTPServer, os, signal, sys
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    14
  > 
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    15
  > def run(server_class=BaseHTTPServer.HTTPServer,
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    16
  >         handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler):
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    17
  >     server_address = ('localhost', int(os.environ['HGPORT']))
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    18
  >     httpd = server_class(server_address, handler_class)
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    19
  >     httpd.serve_forever()
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    20
  > 
13208
b6693876c250 test-static-http.t: get kill actually working
Adrian Buehlmann <adrian@cadifra.com>
parents: 12847
diff changeset
    21
  > signal.signal(signal.SIGTERM, lambda x, y: sys.exit(0))
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    22
  > run()
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    23
  > EOF
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    24
  $ python dumb.py 2>/dev/null &
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    25
  $ echo $! >> $DAEMON_PIDS
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    26
  $ mkdir remote
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    27
  $ cd remote
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    28
  $ hg init
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    29
  $ echo foo > bar
13209
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    30
  $ echo c2 > '.dotfile with spaces'
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    31
  $ hg add
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    32
  adding .dotfile with spaces
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    33
  adding bar
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    34
  $ hg commit -m"test"
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    35
  $ hg tip
13209
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    36
  changeset:   0:02770d679fb8
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    37
  tag:         tip
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    38
  user:        test
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    39
  date:        Thu Jan 01 00:00:00 1970 +0000
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    40
  summary:     test
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    41
  
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    42
  $ cd ..
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    43
  $ hg clone static-http://localhost:$HGPORT/remote local
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    44
  requesting all changes
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    45
  adding changesets
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    46
  adding manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    47
  adding file changes
13209
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    48
  added 1 changesets with 2 changes to 2 files
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    49
  updating to branch default
13209
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    50
  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
    51
  $ cd local
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    52
  $ hg verify
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    53
  checking changesets
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    54
  checking manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    55
  crosschecking files in changesets and manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    56
  checking files
13209
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    57
  2 files, 1 changesets, 2 total revisions
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    58
  $ cat bar
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    59
  foo
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    60
  $ cd ../remote
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    61
  $ echo baz > quux
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    62
  $ hg commit -A -mtest2
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    63
  adding quux
1111
addcb77fe500 Add an old-http test case
mpm@selenic.com
parents:
diff changeset
    64
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    65
check for HTTP opener failures when cachefile does not exist
1111
addcb77fe500 Add an old-http test case
mpm@selenic.com
parents:
diff changeset
    66
13272
5ccdca7df211 move tags.cache and branchheads.cache to a collected cache folder .hg/cache/
jfh <jason@jasonfharris.com>
parents: 13209
diff changeset
    67
  $ rm .hg/cache/*
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    68
  $ cd ../local
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    69
  $ echo '[hooks]' >> .hg/hgrc
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    70
  $ echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    71
  $ hg pull
13209
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
    72
  changegroup hook: HG_NODE=4ac2e3648604439c580c69b09ec9d93a88d93432 HG_SOURCE=pull HG_URL=http://localhost:$HGPORT/remote 
12643
d08bb64888bc tests: reintroduce ":$HGPORT" in test output
Mads Kiilerich <mads@kiilerich.com>
parents: 12491
diff changeset
    73
  pulling from static-http://localhost:$HGPORT/remote
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    74
  searching for changes
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    75
  adding changesets
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    76
  adding manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    77
  adding file changes
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    78
  added 1 changesets with 1 changes to 1 files
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    79
  (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
    80
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    81
trying to push
2673
109a22f5434a hooks: add url to changegroup, incoming, prechangegroup, pretxnchangegroup hooks
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 2572
diff changeset
    82
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    83
  $ hg update
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    84
  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
    85
  $ echo more foo >> bar
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    86
  $ hg commit -m"test"
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    87
  $ hg push
12643
d08bb64888bc tests: reintroduce ":$HGPORT" in test output
Mads Kiilerich <mads@kiilerich.com>
parents: 12491
diff changeset
    88
  pushing to static-http://localhost:$HGPORT/remote
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    89
  abort: cannot lock static-http repository
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    90
  [255]
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    91
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    92
trying clone -r
1111
addcb77fe500 Add an old-http test case
mpm@selenic.com
parents:
diff changeset
    93
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    94
  $ cd ..
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    95
  $ hg clone -r donotexist static-http://localhost:$HGPORT/remote local0
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    96
  abort: unknown revision 'donotexist'!
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    97
  [255]
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
    98
  $ 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
    99
  adding changesets
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   100
  adding manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   101
  adding file changes
13209
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
   102
  added 1 changesets with 2 changes to 2 files
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   103
  updating to branch default
13209
501f979d26b6 test-static-http.t: increase test coverage on filenames
Adrian Buehlmann <adrian@cadifra.com>
parents: 13208
diff changeset
   104
  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
   105
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   106
test with "/" URI (issue 747)
11066
26abd91d9e84 static-http: mimic more closely localrepo (issue2164: allow clone -r )
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 10398
diff changeset
   107
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   108
  $ hg init
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   109
  $ echo a > a
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   110
  $ hg add a
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   111
  $ hg ci -ma
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   112
  $ hg clone static-http://localhost:$HGPORT/ local2
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   113
  requesting all changes
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   114
  adding changesets
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   115
  adding manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   116
  adding file changes
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   117
  added 1 changesets with 1 changes to 1 files
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   118
  updating to branch default
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   119
  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
   120
  $ cd local2
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   121
  $ hg verify
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   122
  checking changesets
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   123
  checking manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   124
  crosschecking files in changesets and manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   125
  checking files
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   126
  1 files, 1 changesets, 1 total revisions
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   127
  $ cat a
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   128
  a
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   129
  $ hg paths
12643
d08bb64888bc tests: reintroduce ":$HGPORT" in test output
Mads Kiilerich <mads@kiilerich.com>
parents: 12491
diff changeset
   130
  default = static-http://localhost:$HGPORT/
5316
598dae804a5f Test static-http calls on '/' URI (issue 747)
Patrick Mezard <pmezard@gmail.com>
parents: 4290
diff changeset
   131
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   132
test with empty repo (issue965)
6028
6605a03cbf87 make static-http work with empty repos (issue965)
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 5384
diff changeset
   133
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   134
  $ cd ..
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   135
  $ hg init remotempty
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   136
  $ hg clone static-http://localhost:$HGPORT/remotempty local3
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   137
  no changes found
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   138
  updating to branch default
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   139
  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
   140
  $ cd local3
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   141
  $ hg verify
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   142
  checking changesets
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   143
  checking manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   144
  crosschecking files in changesets and manifests
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   145
  checking files
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   146
  0 files, 0 changesets, 0 total revisions
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   147
  $ hg paths
12643
d08bb64888bc tests: reintroduce ":$HGPORT" in test output
Mads Kiilerich <mads@kiilerich.com>
parents: 12491
diff changeset
   148
  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
   149
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   150
test with non-repo
6028
6605a03cbf87 make static-http work with empty repos (issue965)
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 5384
diff changeset
   151
12491
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   152
  $ cd ..
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   153
  $ mkdir notarepo
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   154
  $ 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
   155
  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
   156
  [255]
f0c5c334ded1 tests: unify test-static-http
Matt Mackall <mpm@selenic.com>
parents: 12156
diff changeset
   157
  $ kill $!