test-alias
61 lines
| 803 B
| text/plain
|
TextLexer
/ tests / test-alias
Brendan Cully
|
r4801 | #!/bin/sh | ||
Alexis S. L. Carvalho
|
r5523 | cat >> $HGRCPATH <<EOF | ||
Brendan Cully
|
r4801 | [alias] | ||
myinit = init | ||||
cleanstatus = status -c | ||||
unknown = bargle | ||||
ambiguous = s | ||||
recursive = recursive | ||||
Brendan Cully
|
r8655 | nodefinition = | ||
Benoit Boissinot
|
r8477 | mylog = log | ||
lognull = log -r null | ||||
Benoit Boissinot
|
r8519 | shortlog = log --template '{rev} {node|short} | {date|isodate}\n' | ||
Brendan Cully
|
r8655 | dln = lognull --debug | ||
Nicolas Dumazet
|
r9993 | nousage = rollback | ||
Benoit Boissinot
|
r8477 | |||
[defaults] | ||||
mylog = -q | ||||
lognull = -q | ||||
log = -v | ||||
Brendan Cully
|
r4801 | EOF | ||
echo '% basic' | ||||
hg myinit alias | ||||
echo '% unknown' | ||||
hg unknown | ||||
Brodie Rao
|
r10021 | hg help unknown | ||
Brendan Cully
|
r4801 | |||
echo '% ambiguous' | ||||
hg ambiguous | ||||
Brodie Rao
|
r10021 | hg help ambiguous | ||
Brendan Cully
|
r4801 | |||
echo '% recursive' | ||||
hg recursive | ||||
Brodie Rao
|
r10021 | hg help recursive | ||
Brendan Cully
|
r4801 | |||
Brendan Cully
|
r8655 | echo '% no definition' | ||
hg nodef | ||||
Brodie Rao
|
r10021 | hg help nodef | ||
Brendan Cully
|
r8655 | |||
Brendan Cully
|
r4801 | cd alias | ||
Nicolas Dumazet
|
r9993 | |||
echo '% no usage' | ||||
hg nousage | ||||
Brendan Cully
|
r4801 | echo foo > foo | ||
hg ci -Amfoo | ||||
echo '% with opts' | ||||
hg cleanst | ||||
Benoit Boissinot
|
r8477 | |||
Benoit Boissinot
|
r8519 | echo '% with opts and whitespace' | ||
hg shortlog | ||||
Benoit Boissinot
|
r8477 | echo '% interaction with defaults' | ||
hg mylog | ||||
hg lognull | ||||
Brendan Cully
|
r8655 | |||
echo '% properly recursive' | ||||
hg dln | ||||