tests/test-dispatch
author madhu@madhu
Wed, 25 Mar 2009 01:49:03 +0530
changeset 7870 7bcce39e8f07
parent 7429 dbc40381620e
child 8167 6c82beaaa11a
permissions -rwxr-xr-x
Returns lines changed for paths specified as arguments correctly. This fixes issue 1569. hg churn <path> now returns only the number of lines changed in the path, if the path is specified by filtering files through a match filter at the changeset level. test-churn has been updated to take care of this issue.

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