9964
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
1 #!/bin/sh
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
2
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
3 cat <<EOF >> $HGRCPATH
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
4 [extensions]
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
5 schemes=
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
6
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
7 [schemes]
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
8 l = http://localhost:$HGPORT/
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
9 EOF
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
10
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
11 hg init test
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
12 cd test
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
13 echo a > a
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
14 hg ci -Am initial
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
15
|
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
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
17 cat hg.pid >> $DAEMON_PIDS
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
18
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
19 hg incoming l://
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
20
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
21 echo % errors
|
Alexander Solovyov <piranha@piranha.org.ua>
parents:
diff
changeset
|
22 cat errors.log
|