author | Matt Mackall <mpm@selenic.com> |
Sun, 26 Sep 2010 13:41:32 -0500 | |
changeset 12413 | f8dc83689f19 |
parent 11154 | 17031fea4e95 |
permissions | -rwxr-xr-x |
9964 | 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:
9964
diff
changeset
|
9 |
parts = http://{1}:$HGPORT/ |
11154
17031fea4e95
expand paths to local repository or bundle in appropriate classes
Alexander Solovyov <piranha@piranha.org.ua>
parents:
10070
diff
changeset
|
10 |
z = file:\$PWD/ |
9964 | 11 |
EOF |
12 |
||
13 |
hg init test |
|
14 |
cd test |
|
15 |
echo a > a |
|
16 |
hg ci -Am initial |
|
17 |
||
18 |
hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log |
|
19 |
cat hg.pid >> $DAEMON_PIDS |
|
20 |
||
21 |
hg incoming l:// |
|
22 |
||
10070
9d1195b2f00d
schemes: url parts are counted from 1
Alexander Solovyov <piranha@piranha.org.ua>
parents:
9964
diff
changeset
|
23 |
echo % check that {1} syntax works |
9d1195b2f00d
schemes: url parts are counted from 1
Alexander Solovyov <piranha@piranha.org.ua>
parents:
9964
diff
changeset
|
24 |
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:
9964
diff
changeset
|
25 |
|
11154
17031fea4e95
expand paths to local repository or bundle in appropriate classes
Alexander Solovyov <piranha@piranha.org.ua>
parents:
10070
diff
changeset
|
26 |
echo % check that paths are expanded |
17031fea4e95
expand paths to local repository or bundle in appropriate classes
Alexander Solovyov <piranha@piranha.org.ua>
parents:
10070
diff
changeset
|
27 |
PWD=`pwd` hg incoming z:// |
17031fea4e95
expand paths to local repository or bundle in appropriate classes
Alexander Solovyov <piranha@piranha.org.ua>
parents:
10070
diff
changeset
|
28 |
|
9964 | 29 |
echo % errors |
30 |
cat errors.log |