4 |
4 |
5 hg init test |
5 hg init test |
6 cd test |
6 cd test |
7 echo foo>foo |
7 echo foo>foo |
8 hg commit -A -d '0 0' -m 1 |
8 hg commit -A -d '0 0' -m 1 |
9 hg --config server.uncompressed=True serve -p 20059 -d --pid-file=../hg1.pid |
9 hg --config server.uncompressed=True serve -p $HGPORT -d --pid-file=../hg1.pid |
10 hg serve -p 20060 -d --pid-file=../hg2.pid |
10 hg serve -p $HGPORT1 -d --pid-file=../hg2.pid |
11 # Test server address cannot be reused |
11 # Test server address cannot be reused |
12 hg serve -p 20060 2>&1 | sed -e 's/abort: cannot start server:.*/abort: cannot start server:/' |
12 hg serve -p $HGPORT1 2>&1 | sed -e 's/abort: cannot start server:.*/abort: cannot start server:/' |
13 cd .. |
13 cd .. |
14 cat hg1.pid hg2.pid >> $DAEMON_PIDS |
14 cat hg1.pid hg2.pid >> $DAEMON_PIDS |
15 |
15 |
16 echo % clone via stream |
16 echo % clone via stream |
17 http_proxy= hg clone --uncompressed http://localhost:20059/ copy 2>&1 | \ |
17 http_proxy= hg clone --uncompressed http://localhost:$HGPORT/ copy 2>&1 | \ |
18 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/' |
19 hg verify -R copy |
19 hg verify -R copy |
20 |
20 |
21 echo % try to clone via stream, should use pull instead |
21 echo % try to clone via stream, should use pull instead |
22 http_proxy= hg clone --uncompressed http://localhost:20060/ copy2 |
22 http_proxy= hg clone --uncompressed http://localhost:$HGPORT1/ copy2 |
23 |
23 |
24 echo % clone via pull |
24 echo % clone via pull |
25 http_proxy= hg clone http://localhost:20059/ copy-pull |
25 http_proxy= hg clone http://localhost:$HGPORT1/ copy-pull |
26 hg verify -R copy-pull |
26 hg verify -R copy-pull |
27 |
27 |
28 cd test |
28 cd test |
29 echo bar > bar |
29 echo bar > bar |
30 hg commit -A -d '1 0' -m 2 |
30 hg commit -A -d '1 0' -m 2 |