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