tests/test-hup
author Patrick Mezard <pmezard@gmail.com>
Sun, 08 Nov 2009 18:08:24 +0100
changeset 9818 72d670c43f6e
parent 7080 a6477aa893b8
permissions -rwxr-xr-x
patchbomb: normalize date format in generated mboxes mbox format should use time.asctime(). Unfortunately, this function writes 2-characters day of week on Windows while unix one writes a single character. Normalize to Windows version since the other one can hardly be written with strftime().

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