tests/test-dispatch
author Adrian Buehlmann <adrian@cadifra.com>
Mon, 14 Apr 2008 00:36:01 +0200
changeset 6551 4a064e1977f8
parent 5523 5db730475d6d
child 7429 dbc40381620e
permissions -rwxr-xr-x
ignore *.pyd files *.c modules on Windows are compiled to *.pyd

#!/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

echo '% no repo'
cd ..
hg cat

exit 0