test-alias
52 lines
| 687 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 | ||
Benoit Boissinot
|
r8477 | |||
[defaults] | ||||
mylog = -q | ||||
lognull = -q | ||||
log = -v | ||||
Brendan Cully
|
r4801 | EOF | ||
echo '% basic' | ||||
hg myinit alias | ||||
echo '% unknown' | ||||
hg unknown | ||||
echo '% ambiguous' | ||||
hg ambiguous | ||||
echo '% recursive' | ||||
hg recursive | ||||
Brendan Cully
|
r8655 | echo '% no definition' | ||
hg nodef | ||||
Brendan Cully
|
r4801 | cd alias | ||
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 | ||||