view tests/test-inotify-debuginotify @ 11098:380ab78dbd69

workingctx: add explicit status method, add ignored and fix clean workingctx.clean() and memctx.clean() have both been returning ignored files since their creation. This patch fixes clean() while introducing a method for querying ignored files. The new status() method can be used to explicitly override the default (fast) arguments used by the _status property.
author Steve Borho <steve@borho.org>
date Tue, 04 May 2010 14:52:25 -0500
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`