tests/test-hup
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
Sat, 10 Mar 2007 23:00:58 -0300
changeset 4191 1c69c73d85d9
parent 3917 a413f5c29c46
permissions -rwxr-xr-x
locate: exit(1) if we didn't print any file

#!/bin/sh

hg init
mkfifo p

hg serve --stdio < p &
P=$!
(echo lock; echo addchangegroup; sleep 5) > p &
Q=$!
sleep 3
kill -HUP $P
wait
echo .hg/* .hg/store/*