tests/test-hup
author Vadim Gelfer <vadim.gelfer@gmail.com>
Thu, 16 Feb 2006 08:40:47 -0800
changeset 1726 56fb048b102c
parent 814 0902ffece4b4
child 2088 f16435b45780
permissions -rwxr-xr-x
prefix hook env var names with HG_. old names are still provided, but doc says they deprecated.

#!/bin/sh

hg init
mkfifo p

hg serve --stdio < p &
P=$!
(echo lock; echo addchangegroup; sleep 5) > p &
Q=$!
sleep 1
kill -HUP $P
sleep 1
ls .hg