view tests/test-inotify-debuginotify @ 10969:ca052b484e56

context: remove parents parameter to workingctx it was needed before the refactor of commit, workingctx always uses the dirstate now.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Wed, 21 Apr 2010 01:18:31 +0200
parents 3e09bc5fee12
children
line wrap: on
line source

#!/bin/sh

"$TESTDIR/hghave" inotify || exit 80

hg init

echo "[extensions]" >> $HGRCPATH
echo "inotify=" >> $HGRCPATH

echo % inserve
hg inserve -d --pid-file=hg.pid
cat hg.pid >> "$DAEMON_PIDS"

# let the daemon finish its stuff
sleep 1

echo % empty
hg debuginotify

mkdir a
sleep 1

echo % only 'a'
hg debuginotify

rmdir a
sleep 1

echo % empty again
hg debuginotify

kill `cat hg.pid`