Show More
@@ -1,18 +1,42 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 | kill `cat hg.pid` | |||
|
20 | sleep 1 | |||
|
21 | ||||
|
22 | 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 | cat hg.pid >> "$DAEMON_PIDS" | |||
|
25 | kill `cat hg.pid` | |||
|
26 | sleep 1 | |||
|
27 | ||||
|
28 | 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]*/,/,' | |||
|
30 | cat hg.pid >> "$DAEMON_PIDS" | |||
|
31 | kill `cat hg.pid` | |||
|
32 | sleep 1 | |||
|
33 | ||||
|
34 | 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]*/,/,' | |||
|
36 | cat hg.pid >> "$DAEMON_PIDS" | |||
|
37 | kill `cat hg.pid` | |||
|
38 | sleep 1 | |||
|
39 | ||||
|
40 | 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]*/,/,' | |||
|
42 | cat hg.pid >> "$DAEMON_PIDS" |
@@ -1,4 +1,16 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 | |||
|
7 | listening at http://localhost/foo/ | |||
|
8 | killed! | |||
|
9 | % With --prefix /foo | |||
|
10 | listening at http://localhost/foo/ | |||
|
11 | killed! | |||
|
12 | % With --prefix foo/ | |||
|
13 | listening at http://localhost/foo/ | |||
|
14 | killed! | |||
|
15 | % With --prefix /foo/ | |||
|
16 | listening at http://localhost/foo/ |
General Comments 0
You need to be logged in to leave comments.
Login now