Show More
@@ -1,7 +1,7 b'' | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | # adjust to non-default HGPORT, e.g. with run-tests.py -j |
|
4 |
hideport() { sed "s/localhost:$HGPORT/localhost: |
|
|
4 | hideport() { sed "s/localhost:$HGPORT/localhost:\$HGPORT/"; } | |
|
5 | 5 | hidehash() { sed "s/changeset 3:............ merges/changeset 3:... merges/"; } |
|
6 | 6 | |
|
7 | 7 | echo "[extensions]" >> $HGRCPATH |
@@ -36,7 +36,7 b' a' | |||
|
36 | 36 | b |
|
37 | 37 | c |
|
38 | 38 | % fetch over http, no auth |
|
39 |
pulling from http://localhost: |
|
|
39 | pulling from http://localhost:$HGPORT/ | |
|
40 | 40 | searching for changes |
|
41 | 41 | adding changesets |
|
42 | 42 | adding manifests |
@@ -47,9 +47,9 b' 1 files updated, 0 files merged, 1 files' | |||
|
47 | 47 | merging with 1:5e056962225c |
|
48 | 48 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
49 | 49 | new changeset 3:... merges remote changes with local |
|
50 |
Automated merge with http://localhost: |
|
|
50 | Automated merge with http://localhost:$HGPORT/ | |
|
51 | 51 | % fetch over http with auth (should be hidden in desc) |
|
52 |
pulling from http://user:***@localhost: |
|
|
52 | pulling from http://user:***@localhost:$HGPORT/ | |
|
53 | 53 | searching for changes |
|
54 | 54 | adding changesets |
|
55 | 55 | adding manifests |
@@ -60,7 +60,7 b' 1 files updated, 0 files merged, 1 files' | |||
|
60 | 60 | merging with 1:5e056962225c |
|
61 | 61 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
62 | 62 | new changeset 3:... merges remote changes with local |
|
63 |
Automated merge with http://localhost: |
|
|
63 | Automated merge with http://localhost:$HGPORT/ | |
|
64 | 64 | updating to branch default |
|
65 | 65 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
66 | 66 | updating to branch default |
@@ -14,7 +14,7 b' hg commit -A -m 1' | |||
|
14 | 14 | hg --config server.uncompressed=True serve -p $HGPORT -d --pid-file=../hg1.pid |
|
15 | 15 | hg serve -p $HGPORT1 -d --pid-file=../hg2.pid |
|
16 | 16 | # Test server address cannot be reused |
|
17 |
hg serve -p $HGPORT1 2>&1 | sed -e "s/abort: cannot start server at ':$HGPORT1':.*/abort: cannot start server at ': |
|
|
17 | hg serve -p $HGPORT1 2>&1 | sed -e "s/abort: cannot start server at ':$HGPORT1':.*/abort: cannot start server at ':\$HGPORT1':/" | |
|
18 | 18 | cd .. |
|
19 | 19 | cat hg1.pid hg2.pid >> $DAEMON_PIDS |
|
20 | 20 | |
@@ -39,5 +39,5 b' echo % pull' | |||
|
39 | 39 | cd copy-pull |
|
40 | 40 | echo '[hooks]' >> .hg/hgrc |
|
41 | 41 | echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc |
|
42 | hg pull | sed -e 's,:[0-9][0-9]*/,/,' | |
|
42 | hg pull | sed -e "s,:$HGPORT1/,:\$HGPORT1/," | |
|
43 | 43 | cd .. |
@@ -66,14 +66,14 b' hg pull ../test-7' | |||
|
66 | 66 | hg verify |
|
67 | 67 | cd .. |
|
68 | 68 | cd test-1 |
|
69 |
hg pull -r 4 http://localhost:$HGPORT/ 2>&1 | sed -e |
|
|
69 | hg pull -r 4 http://localhost:$HGPORT/ 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
70 | 70 | hg verify |
|
71 |
hg pull http://localhost:$HGPORT/ 2>&1 | sed -e |
|
|
71 | hg pull http://localhost:$HGPORT/ 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
72 | 72 | cd .. |
|
73 | 73 | cd test-2 |
|
74 |
hg pull -r 5 http://localhost:$HGPORT/ 2>&1 | sed -e |
|
|
74 | hg pull -r 5 http://localhost:$HGPORT/ 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
75 | 75 | hg verify |
|
76 |
hg pull http://localhost:$HGPORT/ 2>&1 | sed -e |
|
|
76 | hg pull http://localhost:$HGPORT/ 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
77 | 77 | hg verify |
|
78 | 78 | cd .. |
|
79 | 79 | cat error.log |
@@ -148,7 +148,7 b' checking manifests' | |||
|
148 | 148 | crosschecking files in changesets and manifests |
|
149 | 149 | checking files |
|
150 | 150 | 4 files, 9 changesets, 7 total revisions |
|
151 | pulling from http://localhost/ | |
|
151 | pulling from http://localhost:$HGPORT/ | |
|
152 | 152 | searching for changes |
|
153 | 153 | adding changesets |
|
154 | 154 | adding manifests |
@@ -160,14 +160,14 b' checking manifests' | |||
|
160 | 160 | crosschecking files in changesets and manifests |
|
161 | 161 | checking files |
|
162 | 162 | 1 files, 3 changesets, 2 total revisions |
|
163 | pulling from http://localhost/ | |
|
163 | pulling from http://localhost:$HGPORT/ | |
|
164 | 164 | searching for changes |
|
165 | 165 | adding changesets |
|
166 | 166 | adding manifests |
|
167 | 167 | adding file changes |
|
168 | 168 | added 6 changesets with 5 changes to 4 files |
|
169 | 169 | (run 'hg update' to get a working copy) |
|
170 | pulling from http://localhost/ | |
|
170 | pulling from http://localhost:$HGPORT/ | |
|
171 | 171 | searching for changes |
|
172 | 172 | adding changesets |
|
173 | 173 | adding manifests |
@@ -179,7 +179,7 b' checking manifests' | |||
|
179 | 179 | crosschecking files in changesets and manifests |
|
180 | 180 | checking files |
|
181 | 181 | 1 files, 5 changesets, 3 total revisions |
|
182 | pulling from http://localhost/ | |
|
182 | pulling from http://localhost:$HGPORT/ | |
|
183 | 183 | searching for changes |
|
184 | 184 | adding changesets |
|
185 | 185 | adding manifests |
@@ -2,7 +2,7 b' adding foo' | |||
|
2 | 2 | adding foo.d/bAr.hg.d/BaR |
|
3 | 3 | adding foo.d/baR.d.hg/bAR |
|
4 | 4 | adding foo.d/foo |
|
5 |
abort: cannot start server at ': |
|
|
5 | abort: cannot start server at ':$HGPORT1': | |
|
6 | 6 | % clone via stream |
|
7 | 7 | streaming all changes |
|
8 | 8 | XXX files to transfer, XXX bytes of data |
@@ -37,8 +37,8 b' checking files' | |||
|
37 | 37 | 4 files, 1 changesets, 4 total revisions |
|
38 | 38 | adding bar |
|
39 | 39 | % pull |
|
40 | changegroup hook: HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_SOURCE=pull HG_URL=http://localhost/ | |
|
41 | pulling from http://localhost/ | |
|
40 | changegroup hook: HG_NODE=5fed3813f7f5e1824344fdc9cf8f63bb662c292d HG_SOURCE=pull HG_URL=http://localhost:$HGPORT1/ | |
|
41 | pulling from http://localhost:$HGPORT1/ | |
|
42 | 42 | searching for changes |
|
43 | 43 | adding changesets |
|
44 | 44 | adding manifests |
@@ -14,8 +14,8 b' cd ..' | |||
|
14 | 14 | |
|
15 | 15 | hg init new |
|
16 | 16 | # http incoming |
|
17 |
hg -R new incoming http://localhost:$HGPORT/ | sed -e |
|
|
18 |
hg -R new incoming -r 4 http://localhost:$HGPORT/ | sed -e |
|
|
17 | hg -R new incoming http://localhost:$HGPORT/ | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
18 | hg -R new incoming -r 4 http://localhost:$HGPORT/ | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
19 | 19 | # local incoming |
|
20 | 20 | hg -R new incoming test |
|
21 | 21 | hg -R new incoming -r 4 test |
@@ -25,7 +25,7 b' echo "% limit to 2 changesets, test with' | |||
|
25 | 25 | hg -R new incoming -l 2 -p --git test |
|
26 | 26 | |
|
27 | 27 | # test with --bundle |
|
28 |
hg -R new incoming --bundle test.hg http://localhost:$HGPORT/ | sed -e |
|
|
28 | hg -R new incoming --bundle test.hg http://localhost:$HGPORT/ | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
29 | 29 | hg -R new incoming --bundle test2.hg test |
|
30 | 30 | |
|
31 | 31 | # test the resulting bundles |
@@ -50,5 +50,5 b' cd ..' | |||
|
50 | 50 | hg -R test-dev outgoing test |
|
51 | 51 | echo "% limit to 3 changesets" |
|
52 | 52 | hg -R test-dev outgoing -l 3 test |
|
53 |
hg -R test-dev outgoing http://localhost:$HGPORT/ | sed -e |
|
|
54 |
hg -R test-dev outgoing -r 11 http://localhost:$HGPORT/ | sed -e |
|
|
53 | hg -R test-dev outgoing http://localhost:$HGPORT/ | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
54 | hg -R test-dev outgoing -r 11 http://localhost:$HGPORT/ | sed -e "s,:$HGPORT/,:\$HGPORT/," |
@@ -4,7 +4,7 b' checking manifests' | |||
|
4 | 4 | crosschecking files in changesets and manifests |
|
5 | 5 | checking files |
|
6 | 6 | 1 files, 9 changesets, 9 total revisions |
|
7 | comparing with http://localhost/ | |
|
7 | comparing with http://localhost:$HGPORT/ | |
|
8 | 8 | changeset: 0:9cb21d99fe27 |
|
9 | 9 | user: test |
|
10 | 10 | date: Mon Jan 12 13:46:40 1970 +0000 |
@@ -51,7 +51,7 b' user: test' | |||
|
51 | 51 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
52 | 52 | summary: 8 |
|
53 | 53 | |
|
54 | comparing with http://localhost/ | |
|
54 | comparing with http://localhost:$HGPORT/ | |
|
55 | 55 | changeset: 0:9cb21d99fe27 |
|
56 | 56 | user: test |
|
57 | 57 | date: Mon Jan 12 13:46:40 1970 +0000 |
@@ -189,7 +189,7 b' diff --git a/foo b/foo' | |||
|
189 | 189 | 0 |
|
190 | 190 | +1 |
|
191 | 191 | |
|
192 | comparing with http://localhost/ | |
|
192 | comparing with http://localhost:$HGPORT/ | |
|
193 | 193 | changeset: 0:9cb21d99fe27 |
|
194 | 194 | user: test |
|
195 | 195 | date: Mon Jan 12 13:46:40 1970 +0000 |
@@ -358,7 +358,7 b' user: test' | |||
|
358 | 358 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
359 | 359 | summary: 11 |
|
360 | 360 | |
|
361 | comparing with http://localhost/ | |
|
361 | comparing with http://localhost:$HGPORT/ | |
|
362 | 362 | searching for changes |
|
363 | 363 | changeset: 9:3741c3ad1096 |
|
364 | 364 | user: test |
@@ -386,7 +386,7 b' user: test' | |||
|
386 | 386 | date: Mon Jan 12 13:46:40 1970 +0000 |
|
387 | 387 | summary: 13 |
|
388 | 388 | |
|
389 | comparing with http://localhost/ | |
|
389 | comparing with http://localhost:$HGPORT/ | |
|
390 | 390 | searching for changes |
|
391 | 391 | changeset: 9:3741c3ad1096 |
|
392 | 392 | user: test |
@@ -11,13 +11,13 b' hg serve -p $HGPORT -d --pid-file=hg.pid' | |||
|
11 | 11 | cat hg.pid >> $DAEMON_PIDS |
|
12 | 12 | cd .. |
|
13 | 13 | |
|
14 |
hg clone --pull http://localhost:$HGPORT/ copy | sed -e |
|
|
14 | hg clone --pull http://localhost:$HGPORT/ copy | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
15 | 15 | cd copy |
|
16 | 16 | hg verify |
|
17 | 17 | hg co |
|
18 | 18 | cat foo |
|
19 | 19 | hg manifest --debug |
|
20 |
hg pull | sed -e |
|
|
20 | hg pull | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
21 | 21 | |
|
22 | 22 | echo % issue 622 |
|
23 | 23 | cd .. |
@@ -18,7 +18,7 b" echo '[web]' > .hg/hgrc" | |||
|
18 | 18 | echo 'allowpull = false' >> .hg/hgrc |
|
19 | 19 | hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log |
|
20 | 20 | cat hg.pid >> $DAEMON_PIDS |
|
21 |
hg clone http://localhost:$HGPORT/ test3 | sed -e |
|
|
21 | hg clone http://localhost:$HGPORT/ test3 | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
22 | 22 | "$TESTDIR/killdaemons.py" |
|
23 | 23 | echo % serve errors |
|
24 | 24 | cat errors.log |
@@ -26,7 +26,7 b' cat errors.log' | |||
|
26 | 26 | req() { |
|
27 | 27 | hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log |
|
28 | 28 | cat hg.pid >> $DAEMON_PIDS |
|
29 |
hg --cwd ../test pull http://localhost:$HGPORT/ | sed -e |
|
|
29 | hg --cwd ../test pull http://localhost:$HGPORT/ | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
30 | 30 | kill `cat hg.pid` |
|
31 | 31 | echo % serve errors |
|
32 | 32 | cat errors.log |
@@ -7,6 +7,6 b' requesting all changes' | |||
|
7 | 7 | % serve errors |
|
8 | 8 | % expect error, pulling not allowed |
|
9 | 9 | abort: authorization failed |
|
10 | pulling from http://localhost/ | |
|
10 | pulling from http://localhost:$HGPORT/ | |
|
11 | 11 | searching for changes |
|
12 | 12 | % serve errors |
@@ -19,7 +19,7 b' 1 files, 1 changesets, 1 total revisions' | |||
|
19 | 19 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
20 | 20 | foo |
|
21 | 21 | 2ed2a3912a0b24502043eae84ee4b279c18b90dd 644 foo |
|
22 | pulling from http://localhost/ | |
|
22 | pulling from http://localhost:$HGPORT/ | |
|
23 | 23 | searching for changes |
|
24 | 24 | no changes found |
|
25 | 25 | % issue 622 |
@@ -16,7 +16,7 b' hg ci -mb' | |||
|
16 | 16 | req() { |
|
17 | 17 | hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log |
|
18 | 18 | cat hg.pid >> $DAEMON_PIDS |
|
19 |
hg --cwd ../test2 push http://localhost:$HGPORT/ | sed -e |
|
|
19 | hg --cwd ../test2 push http://localhost:$HGPORT/ | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
20 | 20 | kill `cat hg.pid` |
|
21 | 21 | echo % serve errors |
|
22 | 22 | cat errors.log |
@@ -2,22 +2,22 b' adding a' | |||
|
2 | 2 | updating to branch default |
|
3 | 3 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
4 | 4 | % expect ssl error |
|
5 | pushing to http://localhost/ | |
|
5 | pushing to http://localhost:$HGPORT/ | |
|
6 | 6 | searching for changes |
|
7 | 7 | ssl required |
|
8 | 8 | % serve errors |
|
9 | 9 | % expect authorization error |
|
10 | 10 | abort: authorization failed |
|
11 | pushing to http://localhost/ | |
|
11 | pushing to http://localhost:$HGPORT/ | |
|
12 | 12 | searching for changes |
|
13 | 13 | % serve errors |
|
14 | 14 | % expect authorization error: must have authorized user |
|
15 | 15 | abort: authorization failed |
|
16 | pushing to http://localhost/ | |
|
16 | pushing to http://localhost:$HGPORT/ | |
|
17 | 17 | searching for changes |
|
18 | 18 | % serve errors |
|
19 | 19 | % expect success |
|
20 | pushing to http://localhost/ | |
|
20 | pushing to http://localhost:$HGPORT/ | |
|
21 | 21 | searching for changes |
|
22 | 22 | adding changesets |
|
23 | 23 | adding manifests |
@@ -28,11 +28,11 b' changegroup hook: HG_NODE=ba677d0156c119' | |||
|
28 | 28 | rolling back last transaction |
|
29 | 29 | % expect authorization error: all users denied |
|
30 | 30 | abort: authorization failed |
|
31 | pushing to http://localhost/ | |
|
31 | pushing to http://localhost:$HGPORT/ | |
|
32 | 32 | searching for changes |
|
33 | 33 | % serve errors |
|
34 | 34 | % expect authorization error: some users denied, users must be authenticated |
|
35 | 35 | abort: authorization failed |
|
36 | pushing to http://localhost/ | |
|
36 | pushing to http://localhost:$HGPORT/ | |
|
37 | 37 | searching for changes |
|
38 | 38 | % serve errors |
@@ -34,7 +34,7 b' hg tip' | |||
|
34 | 34 | |
|
35 | 35 | cd .. |
|
36 | 36 | |
|
37 |
hg clone static-http://localhost:$HGPORT/remote local | sed -e |
|
|
37 | hg clone static-http://localhost:$HGPORT/remote local | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
38 | 38 | |
|
39 | 39 | cd local |
|
40 | 40 | hg verify |
@@ -47,13 +47,13 b" hg commit -A -mtest2 -d '100000000 0'" | |||
|
47 | 47 | cd ../local |
|
48 | 48 | echo '[hooks]' >> .hg/hgrc |
|
49 | 49 | echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc |
|
50 |
hg pull | sed -e |
|
|
50 | hg pull | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
51 | 51 | |
|
52 | 52 | echo '% trying to push' |
|
53 | 53 | hg update |
|
54 | 54 | echo more foo >> bar |
|
55 | 55 | hg commit -m"test" -d "100000000 0" |
|
56 |
hg push | sed -e |
|
|
56 | hg push | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
57 | 57 | |
|
58 | 58 | echo '% test with "/" URI (issue 747)' |
|
59 | 59 | cd .. |
@@ -62,26 +62,26 b' echo a > a' | |||
|
62 | 62 | hg add a |
|
63 | 63 | hg ci -ma |
|
64 | 64 | |
|
65 |
hg clone static-http://localhost:$HGPORT/ local2 | sed -e |
|
|
65 | hg clone static-http://localhost:$HGPORT/ local2 | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
66 | 66 | |
|
67 | 67 | cd local2 |
|
68 | 68 | hg verify |
|
69 | 69 | cat a |
|
70 |
hg paths | sed -e |
|
|
70 | hg paths | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
71 | 71 | |
|
72 | 72 | echo '% test with empty repo (issue965)' |
|
73 | 73 | cd .. |
|
74 | 74 | hg init remotempty |
|
75 | 75 | |
|
76 |
hg clone static-http://localhost:$HGPORT/remotempty local3 | sed -e |
|
|
76 | hg clone static-http://localhost:$HGPORT/remotempty local3 | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
77 | 77 | |
|
78 | 78 | cd local3 |
|
79 | 79 | hg verify |
|
80 |
hg paths | sed -e |
|
|
80 | hg paths | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
81 | 81 | |
|
82 | 82 | echo '% test with non-repo' |
|
83 | 83 | cd .. |
|
84 | 84 | mkdir notarepo |
|
85 |
hg clone static-http://localhost:$HGPORT/notarepo local3 2>&1 | sed -e |
|
|
85 | hg clone static-http://localhost:$HGPORT/notarepo local3 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
86 | 86 | |
|
87 | 87 | kill $! |
@@ -21,8 +21,8 b' checking files' | |||
|
21 | 21 | 1 files, 1 changesets, 1 total revisions |
|
22 | 22 | foo |
|
23 | 23 | adding quux |
|
24 | changegroup hook: HG_NODE=34401e0e9971e9720b613d9089ffa9a6eefb3d2d HG_SOURCE=pull HG_URL=http://localhost/remote | |
|
25 | pulling from static-http://localhost/remote | |
|
24 | changegroup hook: HG_NODE=34401e0e9971e9720b613d9089ffa9a6eefb3d2d HG_SOURCE=pull HG_URL=http://localhost:$HGPORT/remote | |
|
25 | pulling from static-http://localhost:$HGPORT/remote | |
|
26 | 26 | searching for changes |
|
27 | 27 | adding changesets |
|
28 | 28 | adding manifests |
@@ -32,7 +32,7 b' added 1 changesets with 1 changes to 1 f' | |||
|
32 | 32 | % trying to push |
|
33 | 33 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
34 | 34 | abort: cannot lock static-http repository |
|
35 | pushing to static-http://localhost/remote | |
|
35 | pushing to static-http://localhost:$HGPORT/remote | |
|
36 | 36 | % test with "/" URI (issue 747) |
|
37 | 37 | requesting all changes |
|
38 | 38 | adding changesets |
@@ -47,7 +47,7 b' crosschecking files in changesets and ma' | |||
|
47 | 47 | checking files |
|
48 | 48 | 1 files, 1 changesets, 1 total revisions |
|
49 | 49 | a |
|
50 | default = static-http://localhost/ | |
|
50 | default = static-http://localhost:$HGPORT/ | |
|
51 | 51 | % test with empty repo (issue965) |
|
52 | 52 | no changes found |
|
53 | 53 | updating to branch default |
@@ -57,6 +57,6 b' checking manifests' | |||
|
57 | 57 | crosschecking files in changesets and manifests |
|
58 | 58 | checking files |
|
59 | 59 | 0 files, 0 changesets, 0 total revisions |
|
60 | default = static-http://localhost/remotempty | |
|
60 | default = static-http://localhost:$HGPORT/remotempty | |
|
61 | 61 | % test with non-repo |
|
62 | abort: 'http://localhost/notarepo' does not appear to be an hg repository! | |
|
62 | abort: 'http://localhost:$HGPORT/notarepo' does not appear to be an hg repository! |
General Comments 0
You need to be logged in to leave comments.
Login now