Show More
@@ -1,30 +1,29 | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | hg clone http://localhost:$HGPORT/ copy |
|
3 | { hg clone http://localhost:$HGPORT/ copy 2>&1; echo $?; } | \ | |
4 | echo $? |
|
4 | sed 's/error:.*/error:/' | |
5 | test -d copy || echo copy: No such file or directory |
|
5 | test -d copy || echo copy: No such file or directory | |
6 |
|
6 | |||
7 | cat > dumb.py <<EOF |
|
7 | cat > dumb.py <<EOF | |
8 | import BaseHTTPServer, SimpleHTTPServer, os, signal |
|
8 | import BaseHTTPServer, SimpleHTTPServer, os, signal | |
9 |
|
9 | |||
10 | def run(server_class=BaseHTTPServer.HTTPServer, |
|
10 | def run(server_class=BaseHTTPServer.HTTPServer, | |
11 | handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler): |
|
11 | handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler): | |
12 | server_address = ('localhost', int(os.environ['HGPORT'])) |
|
12 | server_address = ('localhost', int(os.environ['HGPORT'])) | |
13 | httpd = server_class(server_address, handler_class) |
|
13 | httpd = server_class(server_address, handler_class) | |
14 | httpd.serve_forever() |
|
14 | httpd.serve_forever() | |
15 |
|
15 | |||
16 | signal.signal(signal.SIGTERM, lambda x: sys.exit(0)) |
|
16 | signal.signal(signal.SIGTERM, lambda x: sys.exit(0)) | |
17 | run() |
|
17 | run() | |
18 | EOF |
|
18 | EOF | |
19 |
|
19 | |||
20 | python dumb.py 2>/dev/null & |
|
20 | python dumb.py 2>/dev/null & | |
21 | echo $! >> $DAEMON_PIDS |
|
21 | echo $! >> $DAEMON_PIDS | |
22 |
|
22 | |||
23 | # give the server some time to start running |
|
23 | # give the server some time to start running | |
24 | sleep 1 |
|
24 | sleep 1 | |
25 |
|
25 | |||
26 | http_proxy= hg clone http://localhost:$HGPORT/foo copy2 2>&1 | \ |
|
26 | { http_proxy= hg clone http://localhost:$HGPORT/foo copy2 2>&1; echo $?; } | \ | |
27 | sed -e 's/404.*/404/' -e 's/Date:.*/Date:/' |
|
27 | sed -e 's/404.*/404/' -e 's/Date:.*/Date:/' | |
28 | echo $? |
|
|||
29 |
|
28 | |||
30 | kill $! |
|
29 | kill $! |
@@ -1,5 +1,5 | |||||
1 | abort: error: Connection refused |
|
1 | abort: error: | |
2 | 255 |
|
2 | 255 | |
3 | copy: No such file or directory |
|
3 | copy: No such file or directory | |
4 | abort: HTTP Error 404 |
|
4 | abort: HTTP Error 404 | |
5 | 0 |
|
5 | 255 |
@@ -1,45 +1,46 | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | hg init a |
|
3 | hg init a | |
4 | cd a |
|
4 | cd a | |
5 | echo a > a |
|
5 | echo a > a | |
6 | hg ci -Ama -d '1123456789 0' |
|
6 | hg ci -Ama -d '1123456789 0' | |
7 | hg --config server.uncompressed=True serve -p $HGPORT -d --pid-file=hg.pid |
|
7 | hg --config server.uncompressed=True serve -p $HGPORT -d --pid-file=hg.pid | |
8 | cat hg.pid >> $DAEMON_PIDS |
|
8 | cat hg.pid >> $DAEMON_PIDS | |
9 |
|
9 | |||
10 | cd .. |
|
10 | cd .. | |
11 | ("$TESTDIR/tinyproxy.py" $HGPORT1 localhost >proxy.log 2>&1 </dev/null & |
|
11 | ("$TESTDIR/tinyproxy.py" $HGPORT1 localhost >proxy.log 2>&1 </dev/null & | |
12 | echo $! > proxy.pid) |
|
12 | echo $! > proxy.pid) | |
13 | cat proxy.pid >> $DAEMON_PIDS |
|
13 | cat proxy.pid >> $DAEMON_PIDS | |
14 | sleep 2 |
|
14 | sleep 2 | |
15 |
|
15 | |||
16 | echo %% url for proxy, stream |
|
16 | echo %% url for proxy, stream | |
17 | http_proxy=http://localhost:$HGPORT1/ hg --config http_proxy.always=True clone --uncompressed http://localhost:$HGPORT/ b | \ |
|
17 | http_proxy=http://localhost:$HGPORT1/ hg --config http_proxy.always=True clone --uncompressed http://localhost:$HGPORT/ b | \ | |
18 | sed -e 's/[0-9][0-9.]*/XXX/g' -e 's/[KM]\(B\/sec\)/X\1/' |
|
18 | sed -e 's/[0-9][0-9.]*/XXX/g' -e 's/[KM]\(B\/sec\)/X\1/' | |
19 | cd b |
|
19 | cd b | |
20 | hg verify |
|
20 | hg verify | |
21 | cd .. |
|
21 | cd .. | |
22 |
|
22 | |||
23 | echo %% url for proxy, pull |
|
23 | echo %% url for proxy, pull | |
24 | http_proxy=http://localhost:$HGPORT1/ hg --config http_proxy.always=True clone http://localhost:$HGPORT/ b-pull |
|
24 | http_proxy=http://localhost:$HGPORT1/ hg --config http_proxy.always=True clone http://localhost:$HGPORT/ b-pull | |
25 | cd b-pull |
|
25 | cd b-pull | |
26 | hg verify |
|
26 | hg verify | |
27 | cd .. |
|
27 | cd .. | |
28 |
|
28 | |||
29 | echo %% host:port for proxy |
|
29 | echo %% host:port for proxy | |
30 | http_proxy=localhost:$HGPORT1 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ c |
|
30 | http_proxy=localhost:$HGPORT1 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ c | |
31 |
|
31 | |||
32 | echo %% proxy url with user name and password |
|
32 | echo %% proxy url with user name and password | |
33 | http_proxy=http://user:passwd@localhost:$HGPORT1 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ d |
|
33 | http_proxy=http://user:passwd@localhost:$HGPORT1 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ d | |
34 |
|
34 | |||
35 | echo %% url with user name and password |
|
35 | echo %% url with user name and password | |
36 | http_proxy=http://user:passwd@localhost:$HGPORT1 hg clone --config http_proxy.always=True http://user:passwd@localhost:$HGPORT/ e |
|
36 | http_proxy=http://user:passwd@localhost:$HGPORT1 hg clone --config http_proxy.always=True http://user:passwd@localhost:$HGPORT/ e | |
37 |
|
37 | |||
38 | echo %% bad host:port for proxy |
|
38 | echo %% bad host:port for proxy | |
39 | http_proxy=localhost:$HGPORT2 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ f |
|
39 | http_proxy=localhost:$HGPORT2 hg clone --config http_proxy.always=True http://localhost:$HGPORT/ f 2>&1 | \ | |
|
40 | sed 's/error:.*/error:/' | |||
40 |
|
41 | |||
41 | echo %% do not use the proxy if it is in the no list |
|
42 | echo %% do not use the proxy if it is in the no list | |
42 | http_proxy=localhost:$HGPORT1 hg clone --config http_proxy.no=localhost http://localhost:$HGPORT/ g |
|
43 | http_proxy=localhost:$HGPORT1 hg clone --config http_proxy.no=localhost http://localhost:$HGPORT/ g | |
43 |
|
44 | |||
44 | cat proxy.log | sed -e 's/^.*\] /XXX /' -e 's/:[0-9][0-9]*/:/' |
|
45 | cat proxy.log | sed -e 's/^.*\] /XXX /' -e 's/:[0-9][0-9]*/:/' | |
45 | exit 0 |
|
46 | exit 0 |
@@ -1,78 +1,78 | |||||
1 | adding a |
|
1 | adding a | |
2 | %% url for proxy, stream |
|
2 | %% url for proxy, stream | |
3 | streaming all changes |
|
3 | streaming all changes | |
4 | XXX files to transfer, XXX bytes of data |
|
4 | XXX files to transfer, XXX bytes of data | |
5 | transferred XXX bytes in XXX seconds (XXX XB/sec) |
|
5 | transferred XXX bytes in XXX seconds (XXX XB/sec) | |
6 | updating working directory |
|
6 | updating working directory | |
7 | XXX files updated, XXX files merged, XXX files removed, XXX files unresolved |
|
7 | XXX files updated, XXX files merged, XXX files removed, XXX files unresolved | |
8 | checking changesets |
|
8 | checking changesets | |
9 | checking manifests |
|
9 | checking manifests | |
10 | crosschecking files in changesets and manifests |
|
10 | crosschecking files in changesets and manifests | |
11 | checking files |
|
11 | checking files | |
12 | 1 files, 1 changesets, 1 total revisions |
|
12 | 1 files, 1 changesets, 1 total revisions | |
13 | %% url for proxy, pull |
|
13 | %% url for proxy, pull | |
14 | requesting all changes |
|
14 | requesting all changes | |
15 | adding changesets |
|
15 | adding changesets | |
16 | adding manifests |
|
16 | adding manifests | |
17 | adding file changes |
|
17 | adding file changes | |
18 | added 1 changesets with 1 changes to 1 files |
|
18 | added 1 changesets with 1 changes to 1 files | |
19 | updating working directory |
|
19 | updating working directory | |
20 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
20 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
21 | checking changesets |
|
21 | checking changesets | |
22 | checking manifests |
|
22 | checking manifests | |
23 | crosschecking files in changesets and manifests |
|
23 | crosschecking files in changesets and manifests | |
24 | checking files |
|
24 | checking files | |
25 | 1 files, 1 changesets, 1 total revisions |
|
25 | 1 files, 1 changesets, 1 total revisions | |
26 | %% host:port for proxy |
|
26 | %% host:port for proxy | |
27 | requesting all changes |
|
27 | requesting all changes | |
28 | adding changesets |
|
28 | adding changesets | |
29 | adding manifests |
|
29 | adding manifests | |
30 | adding file changes |
|
30 | adding file changes | |
31 | added 1 changesets with 1 changes to 1 files |
|
31 | added 1 changesets with 1 changes to 1 files | |
32 | updating working directory |
|
32 | updating working directory | |
33 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
33 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
34 | %% proxy url with user name and password |
|
34 | %% proxy url with user name and password | |
35 | requesting all changes |
|
35 | requesting all changes | |
36 | adding changesets |
|
36 | adding changesets | |
37 | adding manifests |
|
37 | adding manifests | |
38 | adding file changes |
|
38 | adding file changes | |
39 | added 1 changesets with 1 changes to 1 files |
|
39 | added 1 changesets with 1 changes to 1 files | |
40 | updating working directory |
|
40 | updating working directory | |
41 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
41 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
42 | %% url with user name and password |
|
42 | %% url with user name and password | |
43 | requesting all changes |
|
43 | requesting all changes | |
44 | adding changesets |
|
44 | adding changesets | |
45 | adding manifests |
|
45 | adding manifests | |
46 | adding file changes |
|
46 | adding file changes | |
47 | added 1 changesets with 1 changes to 1 files |
|
47 | added 1 changesets with 1 changes to 1 files | |
48 | updating working directory |
|
48 | updating working directory | |
49 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
49 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
50 | %% bad host:port for proxy |
|
50 | %% bad host:port for proxy | |
51 | abort: error: Connection refused |
|
51 | abort: error: | |
52 | %% do not use the proxy if it is in the no list |
|
52 | %% do not use the proxy if it is in the no list | |
53 | requesting all changes |
|
53 | requesting all changes | |
54 | adding changesets |
|
54 | adding changesets | |
55 | adding manifests |
|
55 | adding manifests | |
56 | adding file changes |
|
56 | adding file changes | |
57 | added 1 changesets with 1 changes to 1 files |
|
57 | added 1 changesets with 1 changes to 1 files | |
58 | updating working directory |
|
58 | updating working directory | |
59 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
59 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
60 | XXX "GET http://localhost:/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - - |
|
60 | XXX "GET http://localhost:/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - - | |
61 | XXX "GET http://localhost:/?cmd=capabilities HTTP/1.1" - - |
|
61 | XXX "GET http://localhost:/?cmd=capabilities HTTP/1.1" - - | |
62 | XXX "GET http://localhost:/?cmd=stream_out HTTP/1.1" - - |
|
62 | XXX "GET http://localhost:/?cmd=stream_out HTTP/1.1" - - | |
63 | XXX "GET http://localhost:/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - - |
|
63 | XXX "GET http://localhost:/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - - | |
64 | XXX "GET http://localhost:/?cmd=heads HTTP/1.1" - - |
|
64 | XXX "GET http://localhost:/?cmd=heads HTTP/1.1" - - | |
65 | XXX "GET http://localhost:/?cmd=capabilities HTTP/1.1" - - |
|
65 | XXX "GET http://localhost:/?cmd=capabilities HTTP/1.1" - - | |
66 | XXX "GET http://localhost:/?bases=0000000000000000000000000000000000000000&cmd=changegroupsubset&heads=83180e7845de420a1bb46896fd5fe05294f8d629 HTTP/1.1" - - |
|
66 | XXX "GET http://localhost:/?bases=0000000000000000000000000000000000000000&cmd=changegroupsubset&heads=83180e7845de420a1bb46896fd5fe05294f8d629 HTTP/1.1" - - | |
67 | XXX "GET http://localhost:/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - - |
|
67 | XXX "GET http://localhost:/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - - | |
68 | XXX "GET http://localhost:/?cmd=heads HTTP/1.1" - - |
|
68 | XXX "GET http://localhost:/?cmd=heads HTTP/1.1" - - | |
69 | XXX "GET http://localhost:/?cmd=capabilities HTTP/1.1" - - |
|
69 | XXX "GET http://localhost:/?cmd=capabilities HTTP/1.1" - - | |
70 | XXX "GET http://localhost:/?bases=0000000000000000000000000000000000000000&cmd=changegroupsubset&heads=83180e7845de420a1bb46896fd5fe05294f8d629 HTTP/1.1" - - |
|
70 | XXX "GET http://localhost:/?bases=0000000000000000000000000000000000000000&cmd=changegroupsubset&heads=83180e7845de420a1bb46896fd5fe05294f8d629 HTTP/1.1" - - | |
71 | XXX "GET http://localhost:/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - - |
|
71 | XXX "GET http://localhost:/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - - | |
72 | XXX "GET http://localhost:/?cmd=heads HTTP/1.1" - - |
|
72 | XXX "GET http://localhost:/?cmd=heads HTTP/1.1" - - | |
73 | XXX "GET http://localhost:/?cmd=capabilities HTTP/1.1" - - |
|
73 | XXX "GET http://localhost:/?cmd=capabilities HTTP/1.1" - - | |
74 | XXX "GET http://localhost:/?bases=0000000000000000000000000000000000000000&cmd=changegroupsubset&heads=83180e7845de420a1bb46896fd5fe05294f8d629 HTTP/1.1" - - |
|
74 | XXX "GET http://localhost:/?bases=0000000000000000000000000000000000000000&cmd=changegroupsubset&heads=83180e7845de420a1bb46896fd5fe05294f8d629 HTTP/1.1" - - | |
75 | XXX "GET http://localhost:/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - - |
|
75 | XXX "GET http://localhost:/?pairs=0000000000000000000000000000000000000000-0000000000000000000000000000000000000000&cmd=between HTTP/1.1" - - | |
76 | XXX "GET http://localhost:/?cmd=heads HTTP/1.1" - - |
|
76 | XXX "GET http://localhost:/?cmd=heads HTTP/1.1" - - | |
77 | XXX "GET http://localhost:/?cmd=capabilities HTTP/1.1" - - |
|
77 | XXX "GET http://localhost:/?cmd=capabilities HTTP/1.1" - - | |
78 | XXX "GET http://localhost:/?bases=0000000000000000000000000000000000000000&cmd=changegroupsubset&heads=83180e7845de420a1bb46896fd5fe05294f8d629 HTTP/1.1" - - |
|
78 | XXX "GET http://localhost:/?bases=0000000000000000000000000000000000000000&cmd=changegroupsubset&heads=83180e7845de420a1bb46896fd5fe05294f8d629 HTTP/1.1" - - |
@@ -1,87 +1,87 | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | cp "$TESTDIR"/printenv.py . |
|
3 | cp "$TESTDIR"/printenv.py . | |
4 |
|
4 | |||
5 | http_proxy= hg clone http://localhost:$HGPORT/ copy |
|
5 | { http_proxy= hg clone http://localhost:$HGPORT/ copy 2>&1; echo $?; } | \ | |
6 | echo $? |
|
6 | sed 's/error:.*/error:/' | |
7 | test -d copy || echo copy: No such file or directory |
|
7 | test -d copy || echo copy: No such file or directory | |
8 |
|
8 | |||
9 | # This server doesn't do range requests so it's basically only good for |
|
9 | # This server doesn't do range requests so it's basically only good for | |
10 | # one pull |
|
10 | # one pull | |
11 | cat > dumb.py <<EOF |
|
11 | cat > dumb.py <<EOF | |
12 | import BaseHTTPServer, SimpleHTTPServer, os, signal |
|
12 | import BaseHTTPServer, SimpleHTTPServer, os, signal | |
13 |
|
13 | |||
14 | def run(server_class=BaseHTTPServer.HTTPServer, |
|
14 | def run(server_class=BaseHTTPServer.HTTPServer, | |
15 | handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler): |
|
15 | handler_class=SimpleHTTPServer.SimpleHTTPRequestHandler): | |
16 | server_address = ('localhost', int(os.environ['HGPORT'])) |
|
16 | server_address = ('localhost', int(os.environ['HGPORT'])) | |
17 | httpd = server_class(server_address, handler_class) |
|
17 | httpd = server_class(server_address, handler_class) | |
18 | httpd.serve_forever() |
|
18 | httpd.serve_forever() | |
19 |
|
19 | |||
20 | signal.signal(signal.SIGTERM, lambda x: sys.exit(0)) |
|
20 | signal.signal(signal.SIGTERM, lambda x: sys.exit(0)) | |
21 | run() |
|
21 | run() | |
22 | EOF |
|
22 | EOF | |
23 |
|
23 | |||
24 | python dumb.py 2>/dev/null & |
|
24 | python dumb.py 2>/dev/null & | |
25 | echo $! >> $DAEMON_PIDS |
|
25 | echo $! >> $DAEMON_PIDS | |
26 |
|
26 | |||
27 | mkdir remote |
|
27 | mkdir remote | |
28 | cd remote |
|
28 | cd remote | |
29 | hg init |
|
29 | hg init | |
30 | echo foo > bar |
|
30 | echo foo > bar | |
31 | hg add bar |
|
31 | hg add bar | |
32 | hg commit -m"test" -d "1000000 0" |
|
32 | hg commit -m"test" -d "1000000 0" | |
33 | hg tip |
|
33 | hg tip | |
34 |
|
34 | |||
35 | cd .. |
|
35 | cd .. | |
36 |
|
36 | |||
37 | http_proxy= hg clone static-http://localhost:$HGPORT/remote local | sed -e 's,:[0-9][0-9]*/,/,' |
|
37 | http_proxy= hg clone static-http://localhost:$HGPORT/remote local | sed -e 's,:[0-9][0-9]*/,/,' | |
38 |
|
38 | |||
39 | cd local |
|
39 | cd local | |
40 | hg verify |
|
40 | hg verify | |
41 | cat bar |
|
41 | cat bar | |
42 |
|
42 | |||
43 | cd ../remote |
|
43 | cd ../remote | |
44 | echo baz > quux |
|
44 | echo baz > quux | |
45 | hg commit -A -mtest2 -d '100000000 0' |
|
45 | hg commit -A -mtest2 -d '100000000 0' | |
46 |
|
46 | |||
47 | cd ../local |
|
47 | cd ../local | |
48 | echo '[hooks]' >> .hg/hgrc |
|
48 | echo '[hooks]' >> .hg/hgrc | |
49 | echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc |
|
49 | echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc | |
50 | http_proxy= hg pull | sed -e 's,:[0-9][0-9]*/,/,' |
|
50 | http_proxy= hg pull | sed -e 's,:[0-9][0-9]*/,/,' | |
51 |
|
51 | |||
52 | echo '% trying to push' |
|
52 | echo '% trying to push' | |
53 | hg update |
|
53 | hg update | |
54 | echo more foo >> bar |
|
54 | echo more foo >> bar | |
55 | hg commit -m"test" -d "100000000 0" |
|
55 | hg commit -m"test" -d "100000000 0" | |
56 | http_proxy= hg push | sed -e 's,:[0-9][0-9]*/,/,' |
|
56 | http_proxy= hg push | sed -e 's,:[0-9][0-9]*/,/,' | |
57 |
|
57 | |||
58 | echo '% test with "/" URI (issue 747)' |
|
58 | echo '% test with "/" URI (issue 747)' | |
59 | cd .. |
|
59 | cd .. | |
60 | hg init |
|
60 | hg init | |
61 | echo a > a |
|
61 | echo a > a | |
62 | hg add a |
|
62 | hg add a | |
63 | hg ci -ma |
|
63 | hg ci -ma | |
64 |
|
64 | |||
65 | http_proxy= hg clone static-http://localhost:$HGPORT/ local2 | sed -e 's,:[0-9][0-9]*/,/,' |
|
65 | http_proxy= hg clone static-http://localhost:$HGPORT/ local2 | sed -e 's,:[0-9][0-9]*/,/,' | |
66 |
|
66 | |||
67 | cd local2 |
|
67 | cd local2 | |
68 | hg verify |
|
68 | hg verify | |
69 | cat a |
|
69 | cat a | |
70 | hg paths | sed -e 's,:[0-9][0-9]*/,/,' |
|
70 | hg paths | sed -e 's,:[0-9][0-9]*/,/,' | |
71 |
|
71 | |||
72 | echo '% test with empty repo (issue965)' |
|
72 | echo '% test with empty repo (issue965)' | |
73 | cd .. |
|
73 | cd .. | |
74 | hg init remotempty |
|
74 | hg init remotempty | |
75 |
|
75 | |||
76 | http_proxy= hg clone static-http://localhost:$HGPORT/remotempty local3 | sed -e 's,:[0-9][0-9]*/,/,' |
|
76 | http_proxy= hg clone static-http://localhost:$HGPORT/remotempty local3 | sed -e 's,:[0-9][0-9]*/,/,' | |
77 |
|
77 | |||
78 | cd local3 |
|
78 | cd local3 | |
79 | hg verify |
|
79 | hg verify | |
80 | hg paths | sed -e 's,:[0-9][0-9]*/,/,' |
|
80 | hg paths | sed -e 's,:[0-9][0-9]*/,/,' | |
81 |
|
81 | |||
82 | echo '% test with non-repo' |
|
82 | echo '% test with non-repo' | |
83 | cd .. |
|
83 | cd .. | |
84 | mkdir notarepo |
|
84 | mkdir notarepo | |
85 | http_proxy= hg clone static-http://localhost:$HGPORT/notarepo local3 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' |
|
85 | http_proxy= hg clone static-http://localhost:$HGPORT/notarepo local3 2>&1 | sed -e 's,:[0-9][0-9]*/,/,' | |
86 |
|
86 | |||
87 | kill $! |
|
87 | kill $! |
@@ -1,62 +1,62 | |||||
1 | abort: error: Connection refused |
|
1 | abort: error: | |
2 | 255 |
|
2 | 255 | |
3 | copy: No such file or directory |
|
3 | copy: No such file or directory | |
4 | changeset: 0:53e17d176ae6 |
|
4 | changeset: 0:53e17d176ae6 | |
5 | tag: tip |
|
5 | tag: tip | |
6 | user: test |
|
6 | user: test | |
7 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
7 | date: Mon Jan 12 13:46:40 1970 +0000 | |
8 | summary: test |
|
8 | summary: test | |
9 |
|
9 | |||
10 | requesting all changes |
|
10 | requesting all changes | |
11 | adding changesets |
|
11 | adding changesets | |
12 | adding manifests |
|
12 | adding manifests | |
13 | adding file changes |
|
13 | adding file changes | |
14 | added 1 changesets with 1 changes to 1 files |
|
14 | added 1 changesets with 1 changes to 1 files | |
15 | updating working directory |
|
15 | updating working directory | |
16 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
16 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
17 | checking changesets |
|
17 | checking changesets | |
18 | checking manifests |
|
18 | checking manifests | |
19 | crosschecking files in changesets and manifests |
|
19 | crosschecking files in changesets and manifests | |
20 | checking files |
|
20 | checking files | |
21 | 1 files, 1 changesets, 1 total revisions |
|
21 | 1 files, 1 changesets, 1 total revisions | |
22 | foo |
|
22 | foo | |
23 | adding quux |
|
23 | adding quux | |
24 | changegroup hook: HG_NODE=34401e0e9971e9720b613d9089ffa9a6eefb3d2d HG_SOURCE=pull HG_URL=http://localhost/remote |
|
24 | changegroup hook: HG_NODE=34401e0e9971e9720b613d9089ffa9a6eefb3d2d HG_SOURCE=pull HG_URL=http://localhost/remote | |
25 | pulling from static-http://localhost/remote |
|
25 | pulling from static-http://localhost/remote | |
26 | searching for changes |
|
26 | searching for changes | |
27 | adding changesets |
|
27 | adding changesets | |
28 | adding manifests |
|
28 | adding manifests | |
29 | adding file changes |
|
29 | adding file changes | |
30 | added 1 changesets with 1 changes to 1 files |
|
30 | added 1 changesets with 1 changes to 1 files | |
31 | (run 'hg update' to get a working copy) |
|
31 | (run 'hg update' to get a working copy) | |
32 | % trying to push |
|
32 | % trying to push | |
33 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
33 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
34 | abort: cannot lock static-http repository |
|
34 | abort: cannot lock static-http repository | |
35 | pushing to static-http://localhost/remote |
|
35 | pushing to static-http://localhost/remote | |
36 | % test with "/" URI (issue 747) |
|
36 | % test with "/" URI (issue 747) | |
37 | requesting all changes |
|
37 | requesting all changes | |
38 | adding changesets |
|
38 | adding changesets | |
39 | adding manifests |
|
39 | adding manifests | |
40 | adding file changes |
|
40 | adding file changes | |
41 | added 1 changesets with 1 changes to 1 files |
|
41 | added 1 changesets with 1 changes to 1 files | |
42 | updating working directory |
|
42 | updating working directory | |
43 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
43 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
44 | checking changesets |
|
44 | checking changesets | |
45 | checking manifests |
|
45 | checking manifests | |
46 | crosschecking files in changesets and manifests |
|
46 | crosschecking files in changesets and manifests | |
47 | checking files |
|
47 | checking files | |
48 | 1 files, 1 changesets, 1 total revisions |
|
48 | 1 files, 1 changesets, 1 total revisions | |
49 | a |
|
49 | a | |
50 | default = static-http://localhost/ |
|
50 | default = static-http://localhost/ | |
51 | % test with empty repo (issue965) |
|
51 | % test with empty repo (issue965) | |
52 | no changes found |
|
52 | no changes found | |
53 | updating working directory |
|
53 | updating working directory | |
54 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
54 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
55 | checking changesets |
|
55 | checking changesets | |
56 | checking manifests |
|
56 | checking manifests | |
57 | crosschecking files in changesets and manifests |
|
57 | crosschecking files in changesets and manifests | |
58 | checking files |
|
58 | checking files | |
59 | 0 files, 0 changesets, 0 total revisions |
|
59 | 0 files, 0 changesets, 0 total revisions | |
60 | default = static-http://localhost/remotempty |
|
60 | default = static-http://localhost/remotempty | |
61 | % test with non-repo |
|
61 | % test with non-repo | |
62 | abort: 'http://localhost/notarepo' does not appear to be an hg repository! |
|
62 | abort: 'http://localhost/notarepo' does not appear to be an hg repository! |
General Comments 0
You need to be logged in to leave comments.
Login now