test-dispatch
27 lines
| 292 B
| text/plain
|
TextLexer
/ tests / test-dispatch
Brendan Cully
|
r4563 | #!/bin/sh | ||
# test command parsing and dispatch | ||||
Mads Kiilerich
|
r7429 | "$TESTDIR/hghave" no-outer-repo || exit 80 | ||
Brendan Cully
|
r4563 | hg init a | ||
cd a | ||||
echo a > a | ||||
hg ci -Ama -d '0 0' | ||||
Matt Mackall
|
r4621 | echo "# missing arg" | ||
hg cat | ||||
Brendan Cully
|
r4563 | echo '% [defaults]' | ||
hg cat a | ||||
Alexis S. L. Carvalho
|
r5523 | cat >> $HGRCPATH <<EOF | ||
Brendan Cully
|
r4563 | [defaults] | ||
cat = -v | ||||
EOF | ||||
hg cat a | ||||
Matt Mackall
|
r4621 | |||
Brendan Cully
|
r4654 | echo '% no repo' | ||
cd .. | ||||
hg cat | ||||
exit 0 | ||||
Thomas Arendsen Hein
|
r4659 | |||