tests/test-dispatch
author Matt Mackall <mpm@selenic.com>
Mon, 18 Jun 2007 13:24:34 -0500
changeset 4622 6fc26982f203
parent 4561 8044be585b91
child 4654 e0e73ba37983
permissions -rwxr-xr-x
dispatch: fix handling of incorrect number of arguments

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

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