author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
Tue, 19 May 2009 14:14:07 +0200 | |
changeset 8519 | 5fbee915ea5d |
parent 8477 | a0104303f400 |
child 8655 | 21688b8a594b |
permissions | -rwxr-xr-x |
4801 | 1 |
#!/bin/sh |
2 |
||
5523
5db730475d6d
tests/*: avoid losing the original settings from $HGRCPATH
Alexis S. L. Carvalho <alexis@cecm.usp.br>
parents:
4801
diff
changeset
|
3 |
cat >> $HGRCPATH <<EOF |
4801 | 4 |
[extensions] |
5 |
alias= |
|
6 |
||
7 |
[alias] |
|
8 |
myinit = init |
|
9 |
cleanstatus = status -c |
|
10 |
unknown = bargle |
|
11 |
ambiguous = s |
|
12 |
recursive = recursive |
|
8477
a0104303f400
alias: honor the [defaults] section, fix issue1642
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
5523
diff
changeset
|
13 |
mylog = log |
a0104303f400
alias: honor the [defaults] section, fix issue1642
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
5523
diff
changeset
|
14 |
lognull = log -r null |
8519
5fbee915ea5d
alias: a0104303f400 did not correctly handle whitespace in the args
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
8477
diff
changeset
|
15 |
shortlog = log --template '{rev} {node|short} | {date|isodate}\n' |
8477
a0104303f400
alias: honor the [defaults] section, fix issue1642
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
5523
diff
changeset
|
16 |
|
a0104303f400
alias: honor the [defaults] section, fix issue1642
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
5523
diff
changeset
|
17 |
[defaults] |
a0104303f400
alias: honor the [defaults] section, fix issue1642
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
5523
diff
changeset
|
18 |
mylog = -q |
a0104303f400
alias: honor the [defaults] section, fix issue1642
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
5523
diff
changeset
|
19 |
lognull = -q |
a0104303f400
alias: honor the [defaults] section, fix issue1642
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
5523
diff
changeset
|
20 |
log = -v |
4801 | 21 |
EOF |
22 |
||
23 |
echo '% basic' |
|
24 |
hg myinit alias |
|
25 |
||
26 |
echo '% unknown' |
|
27 |
hg unknown |
|
28 |
||
29 |
echo '% ambiguous' |
|
30 |
hg ambiguous |
|
31 |
||
32 |
echo '% recursive' |
|
33 |
hg recursive |
|
34 |
||
35 |
cd alias |
|
36 |
echo foo > foo |
|
37 |
hg ci -Amfoo |
|
38 |
||
39 |
echo '% with opts' |
|
40 |
hg cleanst |
|
8477
a0104303f400
alias: honor the [defaults] section, fix issue1642
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
5523
diff
changeset
|
41 |
|
8519
5fbee915ea5d
alias: a0104303f400 did not correctly handle whitespace in the args
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
8477
diff
changeset
|
42 |
echo '% with opts and whitespace' |
5fbee915ea5d
alias: a0104303f400 did not correctly handle whitespace in the args
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
8477
diff
changeset
|
43 |
hg shortlog |
5fbee915ea5d
alias: a0104303f400 did not correctly handle whitespace in the args
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
8477
diff
changeset
|
44 |
|
8477
a0104303f400
alias: honor the [defaults] section, fix issue1642
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
5523
diff
changeset
|
45 |
echo '% interaction with defaults' |
a0104303f400
alias: honor the [defaults] section, fix issue1642
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
5523
diff
changeset
|
46 |
hg mylog |
a0104303f400
alias: honor the [defaults] section, fix issue1642
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents:
5523
diff
changeset
|
47 |
hg lognull |