tests/test-schemes
author Alexander Solovyov <piranha@piranha.org.ua>
Tue, 24 Nov 2009 17:48:23 +0200
branchstable
changeset 9966 1fa9f6850dee
child 10070 9d1195b2f00d
permissions -rwxr-xr-x
schemes extension
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9966
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
     1
#!/bin/sh
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
     2
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
     3
cat <<EOF >> $HGRCPATH
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
     4
[extensions]
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
     5
schemes=
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
     6
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
     7
[schemes]
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
     8
l = http://localhost:$HGPORT/
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
     9
EOF
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
    10
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
    11
hg init test
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
    12
cd test
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
    13
echo a > a
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
    14
hg ci -Am initial
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
    15
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
    16
hg serve -n test -p $HGPORT -d --pid-file=hg.pid -A access.log -E errors.log
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
    17
cat hg.pid >> $DAEMON_PIDS
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
    18
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
    19
hg incoming l://
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
    20
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
    21
echo % errors
1fa9f6850dee schemes extension
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff changeset
    22
cat errors.log