view tests/test-dispatch @ 8606:1c5752dabf76

inotify: use a decorator instead of dispatching calls
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Fri, 22 May 2009 10:26:56 +0900
parents 6c82beaaa11a
children c88c8d59979f
line wrap: on
line source

#!/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 = -v
EOF
hg cat a

echo '% no repo'
cd ..
hg cat

exit 0