1
#!/bin/sh
2
3
hg init
4
mkfifo p
5
6
hg serve --stdio < p &
7
P=$!
8
(echo lock; echo addchangegroup; sleep 5) > p &
9
Q=$!
10
sleep 1
11
kill -HUP $P
12
13
ls .hg
14
15
16