equal
deleted
inserted
replaced
1 #!/bin/sh |
|
2 |
|
3 cat >> $HGRCPATH <<EOF |
|
4 [alias] |
|
5 myinit = init |
|
6 cleanstatus = status -c |
|
7 unknown = bargle |
|
8 ambiguous = s |
|
9 recursive = recursive |
|
10 nodefinition = |
|
11 no--cwd = status --cwd elsewhere |
|
12 no-R = status -R elsewhere |
|
13 no--repo = status --repo elsewhere |
|
14 no--repository = status --repository elsewhere |
|
15 mylog = log |
|
16 lognull = log -r null |
|
17 shortlog = log --template '{rev} {node|short} | {date|isodate}\n' |
|
18 dln = lognull --debug |
|
19 nousage = rollback |
|
20 put = export -r 0 -o "\$FOO/%R.diff" |
|
21 echo = !echo |
|
22 rt = root |
|
23 |
|
24 [defaults] |
|
25 mylog = -q |
|
26 lognull = -q |
|
27 log = -v |
|
28 EOF |
|
29 |
|
30 echo '% basic' |
|
31 hg myinit alias |
|
32 |
|
33 echo '% unknown' |
|
34 hg unknown |
|
35 hg help unknown |
|
36 |
|
37 echo '% ambiguous' |
|
38 hg ambiguous |
|
39 hg help ambiguous |
|
40 |
|
41 echo '% recursive' |
|
42 hg recursive |
|
43 hg help recursive |
|
44 |
|
45 echo '% no definition' |
|
46 hg nodef |
|
47 hg help nodef |
|
48 |
|
49 echo '% invalid options' |
|
50 hg no--cwd |
|
51 hg help no--cwd |
|
52 hg no-R |
|
53 hg help no-R |
|
54 hg no--repo |
|
55 hg help no--repo |
|
56 hg no--repository |
|
57 hg help no--repository |
|
58 |
|
59 cd alias |
|
60 |
|
61 echo '% no usage' |
|
62 hg nousage |
|
63 |
|
64 echo foo > foo |
|
65 hg ci -Amfoo |
|
66 |
|
67 echo '% with opts' |
|
68 hg cleanst |
|
69 |
|
70 echo '% with opts and whitespace' |
|
71 hg shortlog |
|
72 |
|
73 echo '% interaction with defaults' |
|
74 hg mylog |
|
75 hg lognull |
|
76 |
|
77 echo '% properly recursive' |
|
78 hg dln |
|
79 |
|
80 echo '% path expanding' |
|
81 FOO=`pwd` hg put |
|
82 cat 0.diff |
|
83 |
|
84 echo '% shell aliases' |
|
85 hg echo foo |
|
86 echo '% invalid arguments' |
|
87 hg rt foo |
|
88 |
|
89 exit 0 |
|