tests/test-dispatch
author NIIMI Satoshi <sa2c@sa2c.net>
Thu, 11 Oct 2007 05:58:54 +0900
changeset 5465 9873cbb134b2
parent 4659 7a7d4937272b
permissions -rwxr-xr-x
mercurial.el, mq.el: remove runtime dependencies on CL package * (require 'cl) at compile-time * don't use map()

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