author | Matt Mackall <mpm@selenic.com> |
Wed, 28 Apr 2010 13:45:21 -0500 | |
branch | stable |
changeset 11031 | 409c0e4d79e9 |
parent 10070 | 9d1195b2f00d |
child 11154 | 17031fea4e95 |
permissions | -rwxr-xr-x |
9966 | 1 |
#!/bin/sh |
2 |
||
3 |
cat <<EOF >> $HGRCPATH |
|
4 |
[extensions] |
|
5 |
schemes= |
|
6 |
||
7 |
[schemes] |
|
8 |
l = http://localhost:$HGPORT/ |
|
10070
9d1195b2f00d
schemes: url parts are counted from 1
Alexander Solovyov <piranha@piranha.org.ua>
parents:
9966
diff
changeset
|
9 |
parts = http://{1}:$HGPORT/ |
9966 | 10 |
EOF |
11 |
||
12 |
hg init test |
|
13 |
cd test |
|
14 |
echo a > a |
|
15 |
hg ci -Am initial |
|
16 |
||
17 |
hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
|
18 |
cat hg.pid >> $DAEMON_PIDS |
|
19 |
||
20 |
hg incoming l:// |
|
21 |
||
10070
9d1195b2f00d
schemes: url parts are counted from 1
Alexander Solovyov <piranha@piranha.org.ua>
parents:
9966
diff
changeset
|
22 |
echo % check that {1} syntax works |
9d1195b2f00d
schemes: url parts are counted from 1
Alexander Solovyov <piranha@piranha.org.ua>
parents:
9966
diff
changeset
|
23 |
hg incoming --debug parts://localhost | sed 's/[0-9]//g' |
9d1195b2f00d
schemes: url parts are counted from 1
Alexander Solovyov <piranha@piranha.org.ua>
parents:
9966
diff
changeset
|
24 |
|
9966 | 25 |
echo % errors |
26 |
cat errors.log |