tests/test-dispatch
author Matt Mackall <mpm@selenic.com>
Mon, 18 Jun 2007 17:49:56 -0500
changeset 4630 e6d105a51ec7
parent 4622 6fc26982f203
child 4654 e0e73ba37983
permissions -rwxr-xr-x
dispatch: add generic pre- and post-command hooks

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