tests/test-dispatch
author Matt Mackall <mpm@selenic.com>
Fri, 17 Apr 2009 11:16:50 -0500
changeset 8104 fd7cc930ab8f
parent 7429 dbc40381620e
child 8167 6c82beaaa11a
permissions -rwxr-xr-x
Merge with crew-stable

#!/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 -d '0 0'

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