tests/test-inotify-debuginotify
author Greg Ward <greg-hg@gerg.ca>
Thu, 25 Feb 2010 09:16:39 -0500
changeset 10622 bc81f126139f
parent 8555 3e09bc5fee12
permissions -rwxr-xr-x
shrink-revlog: add --sort option for user-selectable toposort algorithm.

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