tests/test-hup
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Sat, 29 Oct 2005 13:44:05 -0700
changeset 1480 ae0d8d632b83
parent 814 0902ffece4b4
child 2088 f16435b45780
permissions -rwxr-xr-x
allow multiples hook suggested by Vadim Gelfer This patch allows to have multiple hooks of the same kind: for example commit.email = /my/email/hook commit.autobuild = /my/build/hook

#!/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