tests/test-hup
author Yuya Nishihara <yuya@tcha.org>
Sun, 16 May 2010 22:23:14 +0900
changeset 11183 b25464e9b448
parent 7080 a6477aa893b8
permissions -rwxr-xr-x
patchbomb: respect HGPLAIN when piping --test output to PAGER It makes easy to use `hg email --test` from another tool.

#!/bin/sh

"$TESTDIR/hghave" fifo || exit 80

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/*