Show More
@@ -1,36 +1,38 | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
|
3 | cp "$TESTDIR"/printenv.py . | |||
|
4 | ||||
3 | hg init test |
|
5 | hg init test | |
4 | cd test |
|
6 | cd test | |
5 | echo foo>foo |
|
7 | echo foo>foo | |
6 | hg commit -A -d '0 0' -m 1 |
|
8 | hg commit -A -d '0 0' -m 1 | |
7 | hg --config server.uncompressed=True serve -p 20059 -d --pid-file=../hg1.pid |
|
9 | hg --config server.uncompressed=True serve -p 20059 -d --pid-file=../hg1.pid | |
8 | hg serve -p 20060 -d --pid-file=../hg2.pid |
|
10 | hg serve -p 20060 -d --pid-file=../hg2.pid | |
9 | # Test server address cannot be reused |
|
11 | # Test server address cannot be reused | |
10 | hg serve -p 20060 2>&1 | sed -e 's/abort: cannot start server:.*/abort: cannot start server:/' |
|
12 | hg serve -p 20060 2>&1 | sed -e 's/abort: cannot start server:.*/abort: cannot start server:/' | |
11 | cd .. |
|
13 | cd .. | |
12 | cat hg1.pid hg2.pid >> $DAEMON_PIDS |
|
14 | cat hg1.pid hg2.pid >> $DAEMON_PIDS | |
13 |
|
15 | |||
14 | echo % clone via stream |
|
16 | echo % clone via stream | |
15 | http_proxy= hg clone --uncompressed http://localhost:20059/ copy 2>&1 | \ |
|
17 | http_proxy= hg clone --uncompressed http://localhost:20059/ copy 2>&1 | \ | |
16 | 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/' | |
17 | hg verify -R copy |
|
19 | hg verify -R copy | |
18 |
|
20 | |||
19 | echo % try to clone via stream, should use pull instead |
|
21 | echo % try to clone via stream, should use pull instead | |
20 | http_proxy= hg clone --uncompressed http://localhost:20060/ copy2 |
|
22 | http_proxy= hg clone --uncompressed http://localhost:20060/ copy2 | |
21 |
|
23 | |||
22 | echo % clone via pull |
|
24 | echo % clone via pull | |
23 | http_proxy= hg clone http://localhost:20059/ copy-pull |
|
25 | http_proxy= hg clone http://localhost:20059/ copy-pull | |
24 | hg verify -R copy-pull |
|
26 | hg verify -R copy-pull | |
25 |
|
27 | |||
26 | cd test |
|
28 | cd test | |
27 | echo bar > bar |
|
29 | echo bar > bar | |
28 | hg commit -A -d '1 0' -m 2 |
|
30 | hg commit -A -d '1 0' -m 2 | |
29 | cd .. |
|
31 | cd .. | |
30 |
|
32 | |||
31 | echo % pull |
|
33 | echo % pull | |
32 | cd copy-pull |
|
34 | cd copy-pull | |
33 | echo '[hooks]' >> .hg/hgrc |
|
35 | echo '[hooks]' >> .hg/hgrc | |
34 |
echo 'changegroup = |
|
36 | echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc | |
35 | hg pull |
|
37 | hg pull | |
36 | cd .. |
|
38 | cd .. |
@@ -1,41 +1,41 | |||||
1 | adding foo |
|
1 | adding foo | |
2 | abort: cannot start server: |
|
2 | abort: cannot start server: | |
3 | % clone via stream |
|
3 | % clone via stream | |
4 | streaming all changes |
|
4 | streaming all changes | |
5 | XXX files to transfer, XXX bytes of data |
|
5 | XXX files to transfer, XXX bytes of data | |
6 | transferred XXX bytes in XXX seconds (XXX XB/sec) |
|
6 | transferred XXX bytes in XXX seconds (XXX XB/sec) | |
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 | % try to clone via stream, should use pull instead |
|
13 | % try to clone via stream, should use pull instead | |
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 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
19 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
20 | % clone via pull |
|
20 | % clone via pull | |
21 | requesting all changes |
|
21 | requesting all changes | |
22 | adding changesets |
|
22 | adding changesets | |
23 | adding manifests |
|
23 | adding manifests | |
24 | adding file changes |
|
24 | adding file changes | |
25 | added 1 changesets with 1 changes to 1 files |
|
25 | added 1 changesets with 1 changes to 1 files | |
26 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
26 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
27 | checking changesets |
|
27 | checking changesets | |
28 | checking manifests |
|
28 | checking manifests | |
29 | crosschecking files in changesets and manifests |
|
29 | crosschecking files in changesets and manifests | |
30 | checking files |
|
30 | checking files | |
31 | 1 files, 1 changesets, 1 total revisions |
|
31 | 1 files, 1 changesets, 1 total revisions | |
32 | adding bar |
|
32 | adding bar | |
33 | % pull |
|
33 | % pull | |
34 | changegroup: u=http://localhost:20059/ |
|
34 | changegroup hook: HG_NODE=cfbd11a1fa315300a080c3de8fe36b0fc5820acf HG_SOURCE=pull HG_URL=http://localhost:20059/ | |
35 | pulling from http://localhost:20059/ |
|
35 | pulling from http://localhost:20059/ | |
36 | searching for changes |
|
36 | searching for changes | |
37 | adding changesets |
|
37 | adding changesets | |
38 | adding manifests |
|
38 | adding manifests | |
39 | adding file changes |
|
39 | adding file changes | |
40 | added 1 changesets with 1 changes to 1 files |
|
40 | added 1 changesets with 1 changes to 1 files | |
41 | (run 'hg update' to get a working copy) |
|
41 | (run 'hg update' to get a working copy) |
General Comments 0
You need to be logged in to leave comments.
Login now