Show More
@@ -1,42 +1,46 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | hg init test |
|
3 | hg init test | |
4 | cd test |
|
4 | cd test | |
5 |
|
5 | |||
6 | echo '[web]' > .hg/hgrc |
|
6 | echo '[web]' > .hg/hgrc | |
7 | echo 'accesslog = access.log' >> .hg/hgrc |
|
7 | echo 'accesslog = access.log' >> .hg/hgrc | |
8 |
|
8 | |||
9 | echo % Without -v |
|
9 | echo % Without -v | |
10 | hg serve -a localhost -p $HGPORT -d --pid-file=hg.pid |
|
10 | hg serve -a localhost -p $HGPORT -d --pid-file=hg.pid | |
11 | cat hg.pid >> "$DAEMON_PIDS" |
|
11 | cat hg.pid >> "$DAEMON_PIDS" | |
12 | if [ -f access.log ]; then |
|
12 | if [ -f access.log ]; then | |
13 | echo 'access log created - .hg/hgrc respected' |
|
13 | echo 'access log created - .hg/hgrc respected' | |
14 | fi |
|
14 | fi | |
15 |
|
15 | |||
16 | echo % With -v |
|
16 | echo % With -v | |
17 | hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v | sed -e 's,:[0-9][0-9]*/,/,' |
|
17 | hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v | sed -e 's,:[0-9][0-9]*/,/,' | |
18 | cat hg.pid >> "$DAEMON_PIDS" |
|
18 | cat hg.pid >> "$DAEMON_PIDS" | |
|
19 | sleep 1 | |||
19 | kill `cat hg.pid` |
|
20 | kill `cat hg.pid` | |
20 | sleep 1 |
|
21 | sleep 1 | |
21 |
|
22 | |||
22 | echo % With --prefix foo |
|
23 | echo % With --prefix foo | |
23 | hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix foo | sed -e 's,:[0-9][0-9]*/,/,' |
|
24 | hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix foo | sed -e 's,:[0-9][0-9]*/,/,' | |
24 | cat hg.pid >> "$DAEMON_PIDS" |
|
25 | cat hg.pid >> "$DAEMON_PIDS" | |
|
26 | sleep 1 | |||
25 | kill `cat hg.pid` |
|
27 | kill `cat hg.pid` | |
26 | sleep 1 |
|
28 | sleep 1 | |
27 |
|
29 | |||
28 | echo % With --prefix /foo |
|
30 | echo % With --prefix /foo | |
29 | hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix /foo | sed -e 's,:[0-9][0-9]*/,/,' |
|
31 | hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix /foo | sed -e 's,:[0-9][0-9]*/,/,' | |
30 | cat hg.pid >> "$DAEMON_PIDS" |
|
32 | cat hg.pid >> "$DAEMON_PIDS" | |
|
33 | sleep 1 | |||
31 | kill `cat hg.pid` |
|
34 | kill `cat hg.pid` | |
32 | sleep 1 |
|
35 | sleep 1 | |
33 |
|
36 | |||
34 | echo % With --prefix foo/ |
|
37 | echo % With --prefix foo/ | |
35 | hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix foo/ | sed -e 's,:[0-9][0-9]*/,/,' |
|
38 | hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix foo/ | sed -e 's,:[0-9][0-9]*/,/,' | |
36 | cat hg.pid >> "$DAEMON_PIDS" |
|
39 | cat hg.pid >> "$DAEMON_PIDS" | |
|
40 | sleep 1 | |||
37 | kill `cat hg.pid` |
|
41 | kill `cat hg.pid` | |
38 | sleep 1 |
|
42 | sleep 1 | |
39 |
|
43 | |||
40 | echo % With --prefix /foo/ |
|
44 | echo % With --prefix /foo/ | |
41 | hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix /foo/ | sed -e 's,:[0-9][0-9]*/,/,' |
|
45 | hg serve -a localhost -p $HGPORT1 -d --pid-file=hg.pid -v --prefix /foo/ | sed -e 's,:[0-9][0-9]*/,/,' | |
42 | cat hg.pid >> "$DAEMON_PIDS" |
|
46 | cat hg.pid >> "$DAEMON_PIDS" |
@@ -1,16 +1,12 b'' | |||||
1 | % Without -v |
|
1 | % Without -v | |
2 | access log created - .hg/hgrc respected |
|
2 | access log created - .hg/hgrc respected | |
3 | % With -v |
|
3 | % With -v | |
4 | listening at http://localhost/ |
|
4 | listening at http://localhost/ | |
5 | killed! |
|
|||
6 | % With --prefix foo |
|
5 | % With --prefix foo | |
7 | listening at http://localhost/foo/ |
|
6 | listening at http://localhost/foo/ | |
8 | killed! |
|
|||
9 | % With --prefix /foo |
|
7 | % With --prefix /foo | |
10 | listening at http://localhost/foo/ |
|
8 | listening at http://localhost/foo/ | |
11 | killed! |
|
|||
12 | % With --prefix foo/ |
|
9 | % With --prefix foo/ | |
13 | listening at http://localhost/foo/ |
|
10 | listening at http://localhost/foo/ | |
14 | killed! |
|
|||
15 | % With --prefix /foo/ |
|
11 | % With --prefix /foo/ | |
16 | listening at http://localhost/foo/ |
|
12 | listening at http://localhost/foo/ |
General Comments 0
You need to be logged in to leave comments.
Login now