Show More
@@ -1,38 +1,38 b'' | |||
|
1 | 1 | #!/bin/sh |
|
2 | 2 | |
|
3 | 3 | cp "$TESTDIR"/printenv.py . |
|
4 | 4 | |
|
5 | 5 | hg init test |
|
6 | 6 | cd test |
|
7 | 7 | echo foo>foo |
|
8 | 8 | hg commit -A -d '0 0' -m 1 |
|
9 | 9 | hg --config server.uncompressed=True serve -p $HGPORT -d --pid-file=../hg1.pid |
|
10 | 10 | hg serve -p $HGPORT1 -d --pid-file=../hg2.pid |
|
11 | 11 | # Test server address cannot be reused |
|
12 |
hg serve -p $HGPORT1 2>&1 | sed -e "s/abort: cannot start server at ':$HGPORT1':.*/abort: cannot start server at ': |
|
|
12 | hg serve -p $HGPORT1 2>&1 | sed -e "s/abort: cannot start server at ':$HGPORT1':.*/abort: cannot start server at ':20060':/" | |
|
13 | 13 | cd .. |
|
14 | 14 | cat hg1.pid hg2.pid >> $DAEMON_PIDS |
|
15 | 15 | |
|
16 | 16 | echo % clone via stream |
|
17 | 17 | http_proxy= hg clone --uncompressed http://localhost:$HGPORT/ copy 2>&1 | \ |
|
18 | 18 | sed -e 's/[0-9][0-9.]*/XXX/g' -e 's/[KM]\(B\/sec\)/X\1/' |
|
19 | 19 | hg verify -R copy |
|
20 | 20 | |
|
21 | 21 | echo % try to clone via stream, should use pull instead |
|
22 | 22 | http_proxy= hg clone --uncompressed http://localhost:$HGPORT1/ copy2 |
|
23 | 23 | |
|
24 | 24 | echo % clone via pull |
|
25 | 25 | http_proxy= hg clone http://localhost:$HGPORT1/ copy-pull |
|
26 | 26 | hg verify -R copy-pull |
|
27 | 27 | |
|
28 | 28 | cd test |
|
29 | 29 | echo bar > bar |
|
30 | 30 | hg commit -A -d '1 0' -m 2 |
|
31 | 31 | cd .. |
|
32 | 32 | |
|
33 | 33 | echo % pull |
|
34 | 34 | cd copy-pull |
|
35 | 35 | echo '[hooks]' >> .hg/hgrc |
|
36 | 36 | echo 'changegroup = python ../printenv.py changegroup' >> .hg/hgrc |
|
37 | 37 | hg pull | sed -e 's,:[0-9][0-9]*/,/,' |
|
38 | 38 | cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now