Show More
@@ -1,36 +1,36 | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | cp "$TESTDIR"/printenv.py . |
|
3 | cp "$TESTDIR"/printenv.py . | |
4 |
|
4 | |||
5 | hg init test |
|
5 | hg init test | |
6 | cd test |
|
6 | cd test | |
7 | echo a > a |
|
7 | echo a > a | |
8 | hg ci -Ama -d '0 0' |
|
8 | hg ci -Ama -d '0 0' | |
9 |
|
9 | |||
10 | cd .. |
|
10 | cd .. | |
11 | hg clone test test2 |
|
11 | hg clone test test2 | |
12 | cd test2 |
|
12 | cd test2 | |
13 | echo a >> a |
|
13 | echo a >> a | |
14 | hg ci -mb -d '0 0' |
|
14 | hg ci -mb -d '0 0' | |
15 |
|
15 | |||
16 | echo % expect error, cloning not allowed |
|
16 | echo % expect error, cloning not allowed | |
17 | echo '[web]' > .hg/hgrc |
|
17 | echo '[web]' > .hg/hgrc | |
18 | echo 'allowpull = false' >> .hg/hgrc |
|
18 | echo 'allowpull = false' >> .hg/hgrc | |
19 | hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log |
|
19 | hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log | |
20 | cat hg.pid >> $DAEMON_PIDS |
|
20 | cat hg.pid >> $DAEMON_PIDS | |
21 | hg clone http://localhost:$HGPORT/ test3 | sed -e 's,:[0-9][0-9]*/,/,' |
|
21 | hg clone http://localhost:$HGPORT/ test3 | sed -e 's,:[0-9][0-9]*/,/,' | |
22 | kill `cat hg.pid` |
|
22 | "$TESTDIR/killdaemons.py" | |
23 | echo % serve errors |
|
23 | echo % serve errors | |
24 | cat errors.log |
|
24 | cat errors.log | |
25 |
|
25 | |||
26 | req() { |
|
26 | req() { | |
27 | hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log |
|
27 | hg serve -p $HGPORT -d --pid-file=hg.pid -E errors.log | |
28 | cat hg.pid >> $DAEMON_PIDS |
|
28 | cat hg.pid >> $DAEMON_PIDS | |
29 | hg --cwd ../test pull http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' |
|
29 | hg --cwd ../test pull http://localhost:$HGPORT/ | sed -e 's,:[0-9][0-9]*/,/,' | |
30 | kill `cat hg.pid` |
|
30 | kill `cat hg.pid` | |
31 | echo % serve errors |
|
31 | echo % serve errors | |
32 | cat errors.log |
|
32 | cat errors.log | |
33 | } |
|
33 | } | |
34 |
|
34 | |||
35 | echo % expect error, pulling not allowed |
|
35 | echo % expect error, pulling not allowed | |
36 | req |
|
36 | req |
General Comments 0
You need to be logged in to leave comments.
Login now