2007-06-13 00:21:42 +04:00
|
|
|
#!/bin/sh
|
|
|
|
# test command parsing and dispatch
|
|
|
|
|
2008-11-27 02:57:31 +03:00
|
|
|
"$TESTDIR/hghave" no-outer-repo || exit 80
|
|
|
|
|
2007-06-13 00:21:42 +04:00
|
|
|
hg init a
|
|
|
|
cd a
|
|
|
|
echo a > a
|
2009-04-26 16:29:02 +04:00
|
|
|
hg ci -Ama
|
2007-06-13 00:21:42 +04:00
|
|
|
|
2007-06-18 22:24:34 +04:00
|
|
|
echo "# missing arg"
|
|
|
|
hg cat
|
|
|
|
|
2007-06-13 00:21:42 +04:00
|
|
|
echo '% [defaults]'
|
|
|
|
hg cat a
|
2007-11-10 01:21:35 +03:00
|
|
|
cat >> $HGRCPATH <<EOF
|
2007-06-13 00:21:42 +04:00
|
|
|
[defaults]
|
2009-05-25 00:15:48 +04:00
|
|
|
cat = -r null
|
2007-06-13 00:21:42 +04:00
|
|
|
EOF
|
|
|
|
hg cat a
|
2007-06-18 22:24:34 +04:00
|
|
|
|
2007-06-21 07:13:31 +04:00
|
|
|
echo '% no repo'
|
|
|
|
cd ..
|
|
|
|
hg cat
|
|
|
|
|
|
|
|
exit 0
|
2007-06-21 11:25:49 +04:00
|
|
|
|