tests/test-hup
author Bryan O'Sullivan <bos@serpentine.com>
Tue, 24 Apr 2007 11:46:15 -0700
changeset 4373 abeb3edb2b4e
parent 3918 a413f5c29c46
child 7080 a6477aa893b8
permissions -rwxr-xr-x
dirstate: make parents() faster. This allows localrepository.status() to avoid reading all but the first 40 bytes of the dirstate in the common case of running "hg status".

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