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 cat hg1.pid >> $DAEMON_PIDS |
8 hg serve -p 20060 -d --pid-file=../hg2.pid |
9 hg serve -p 20060 -d --pid-file=hg2.pid |
|
10 cat hg2.pid >> $DAEMON_PIDS |
|
11 cd .. |
9 cd .. |
|
10 cat hg1.pid hg2.pid >> $DAEMON_PIDS |
12 |
11 |
13 echo % clone via stream |
12 echo % clone via stream |
14 http_proxy= hg clone --uncompressed http://localhost:20059/ copy 2>&1 | \ |
13 http_proxy= hg clone --uncompressed http://localhost:20059/ copy 2>&1 | \ |
15 sed -e 's/[0-9][0-9.]*/XXX/g' |
14 sed -e 's/[0-9][0-9.]*/XXX/g' |
16 cd copy |
15 hg verify -R copy |
17 hg verify |
|
18 |
16 |
19 echo % try to clone via stream, should use pull instead |
17 echo % try to clone via stream, should use pull instead |
20 http_proxy= hg clone --uncompressed http://localhost:20060/ copy2 |
18 http_proxy= hg clone --uncompressed http://localhost:20060/ copy2 |
21 |
19 |
22 echo % clone via pull |
20 echo % clone via pull |
23 http_proxy= hg clone http://localhost:20059/ copy-pull |
21 http_proxy= hg clone http://localhost:20059/ copy-pull |
24 cd copy-pull |
22 hg verify -R copy-pull |
25 hg verify |
|
26 |
23 |
27 cd test |
24 cd test |
28 echo bar > bar |
25 echo bar > bar |
29 hg commit -A -d '1 0' -m 2 |
26 hg commit -A -d '1 0' -m 2 |
|
27 cd .. |
30 |
28 |
31 echo % pull |
29 echo % pull |
32 cd ../copy-pull |
30 cd copy-pull |
33 echo '[hooks]' >> .hg/hgrc |
31 echo '[hooks]' >> .hg/hgrc |
34 echo 'changegroup = echo changegroup: u=$HG_URL' >> .hg/hgrc |
32 echo 'changegroup = echo changegroup: u=$HG_URL' >> .hg/hgrc |
35 hg pull |
33 hg pull |
|
34 cd .. |