tests/test-dispatch
author Nicolas Dumazet <nicdumz.commits@gmail.com>
Fri, 11 Dec 2009 16:17:39 +0900
changeset 10091 0ce645cc3f20
parent 8637 c88c8d59979f
child 11675 f92f8921a5cc
permissions -rwxr-xr-x
inotify: completely ignore events on the repository root They can only be events on the top directory object. Those events are meaningless for us: permission changes, repository-wide moves... And they break the assertion that all events happen in repo/*. Just ignore them. Fixes one of the failures of run-test.py --inotify test-permissions

#!/bin/sh
# test command parsing and dispatch

"$TESTDIR/hghave" no-outer-repo || exit 80

hg init a
cd a
echo a > a
hg ci -Ama

echo "# missing arg"
hg cat

echo '% [defaults]'
hg cat a
cat >> $HGRCPATH <<EOF
[defaults]
cat = -r null
EOF
hg cat a

echo '% no repo'
cd ..
hg cat

exit 0