test-alias
70 lines
| 942 B
| text/plain
|
TextLexer
/ tests / test-alias
|
r4801 | #!/bin/sh | ||
|
r5523 | cat >> $HGRCPATH <<EOF | ||
|
r4801 | [alias] | ||
myinit = init | ||||
cleanstatus = status -c | ||||
unknown = bargle | ||||
ambiguous = s | ||||
recursive = recursive | ||||
|
r8655 | nodefinition = | ||
|
r8477 | mylog = log | ||
lognull = log -r null | ||||
|
r8519 | shortlog = log --template '{rev} {node|short} | {date|isodate}\n' | ||
|
r8655 | dln = lognull --debug | ||
|
r9993 | nousage = rollback | ||
|
r11460 | put = export -r 0 -o "\$FOO/%R.diff" | ||
|
r11524 | echo = !echo | ||
|
r8477 | |||
[defaults] | ||||
mylog = -q | ||||
lognull = -q | ||||
log = -v | ||||
|
r4801 | EOF | ||
echo '% basic' | ||||
hg myinit alias | ||||
echo '% unknown' | ||||
hg unknown | ||||
|
r10021 | hg help unknown | ||
|
r4801 | |||
echo '% ambiguous' | ||||
hg ambiguous | ||||
|
r10021 | hg help ambiguous | ||
|
r4801 | |||
echo '% recursive' | ||||
hg recursive | ||||
|
r10021 | hg help recursive | ||
|
r4801 | |||
|
r8655 | echo '% no definition' | ||
hg nodef | ||||
|
r10021 | hg help nodef | ||
|
r8655 | |||
|
r4801 | cd alias | ||
|
r9993 | |||
echo '% no usage' | ||||
hg nousage | ||||
|
r4801 | echo foo > foo | ||
hg ci -Amfoo | ||||
echo '% with opts' | ||||
hg cleanst | ||||
|
r8477 | |||
|
r8519 | echo '% with opts and whitespace' | ||
hg shortlog | ||||
|
r8477 | echo '% interaction with defaults' | ||
hg mylog | ||||
hg lognull | ||||
|
r8655 | |||
echo '% properly recursive' | ||||
hg dln | ||||
|
r10793 | |||
echo '% path expanding' | ||||
|
r11460 | FOO=`pwd` hg put | ||
|
r10793 | cat 0.diff | ||
|
r11524 | |||
echo '% shell aliases' | ||||
hg echo foo | ||||