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