tests/test-dispatch
author Nicolas Dumazet <nicdumz.commits@gmail.com>
Tue, 20 Jul 2010 14:13:33 +0900
changeset 11631 dbb98d8fbcaf
parent 8637 c88c8d59979f
child 11675 f92f8921a5cc
permissions -rwxr-xr-x
log: slowpath: only walk specified revision range during preparation Even with --removed, it does not make sense to examine changesets outside of the revision range that was specified by the user: the last phase only yields a subset of (revs), preparation phase hence only has to examine (revs) to fill correctly fncache.

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

echo "# missing arg"
hg cat

echo '% [defaults]'
hg cat a
cat >> $HGRCPATH <<EOF
[defaults]
cat = -r null
EOF
hg cat a

echo '% no repo'
cd ..
hg cat

exit 0