view tests/test-dispatch @ 12343:28642f7fc2cf stable

convert/svn: fix broken symlink renames in svn sink
author Patrick Mezard <pmezard@gmail.com>
date Mon, 20 Sep 2010 21:46:39 +0200
parents 21984c1c83d4
children
line wrap: on
line source

#!/bin/sh
# test command parsing and dispatch

"$TESTDIR/hghave" no-outer-repo || exit 80

dir=`pwd`

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 $dir
hg cat

exit 0