view tests/test-dispatch @ 8222:d30a21594812

more whitespace cleanup and some other style nits
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Mon, 27 Apr 2009 12:37:19 +0200
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