test-dispatch
33 lines
| 422 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 | ||
Mads Kiilerich
|
r11675 | dir=`pwd` | ||
Brendan Cully
|
r4563 | hg init a | ||
cd a | ||||
echo a > a | ||||
Martin Geisler
|
r8167 | hg ci -Ama | ||
Brendan Cully
|
r4563 | |||
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] | ||
Cédric Duval
|
r8637 | cat = -r null | ||
Brendan Cully
|
r4563 | EOF | ||
hg cat a | ||||
Matt Mackall
|
r4621 | |||
Mads Kiilerich
|
r11675 | echo '% working directory removed' | ||
Mads Kiilerich
|
r11772 | sh -c "cd $dir && rm -rf a" | ||
hg --version 2>&1 | sed -e 's,\(abort:.*:\).*$,\1 ...,g' | ||||
Mads Kiilerich
|
r11675 | |||
Brendan Cully
|
r4654 | echo '% no repo' | ||
Mads Kiilerich
|
r11675 | cd $dir | ||
Brendan Cully
|
r4654 | hg cat | ||
exit 0 | ||||
Thomas Arendsen Hein
|
r4659 | |||