##// END OF EJS Templates
test-alias: don't use the environment variable PWD...
Mads Kiilerich -
r11460:9e250c14 stable
parent child Browse files
Show More
@@ -1,66 +1,66 b''
1 #!/bin/sh
1 #!/bin/sh
2
2
3 cat >> $HGRCPATH <<EOF
3 cat >> $HGRCPATH <<EOF
4 [alias]
4 [alias]
5 myinit = init
5 myinit = init
6 cleanstatus = status -c
6 cleanstatus = status -c
7 unknown = bargle
7 unknown = bargle
8 ambiguous = s
8 ambiguous = s
9 recursive = recursive
9 recursive = recursive
10 nodefinition =
10 nodefinition =
11 mylog = log
11 mylog = log
12 lognull = log -r null
12 lognull = log -r null
13 shortlog = log --template '{rev} {node|short} | {date|isodate}\n'
13 shortlog = log --template '{rev} {node|short} | {date|isodate}\n'
14 dln = lognull --debug
14 dln = lognull --debug
15 nousage = rollback
15 nousage = rollback
16 put = export -r 0 -o "\$PWD/%R.diff"
16 put = export -r 0 -o "\$FOO/%R.diff"
17
17
18 [defaults]
18 [defaults]
19 mylog = -q
19 mylog = -q
20 lognull = -q
20 lognull = -q
21 log = -v
21 log = -v
22 EOF
22 EOF
23
23
24 echo '% basic'
24 echo '% basic'
25 hg myinit alias
25 hg myinit alias
26
26
27 echo '% unknown'
27 echo '% unknown'
28 hg unknown
28 hg unknown
29 hg help unknown
29 hg help unknown
30
30
31 echo '% ambiguous'
31 echo '% ambiguous'
32 hg ambiguous
32 hg ambiguous
33 hg help ambiguous
33 hg help ambiguous
34
34
35 echo '% recursive'
35 echo '% recursive'
36 hg recursive
36 hg recursive
37 hg help recursive
37 hg help recursive
38
38
39 echo '% no definition'
39 echo '% no definition'
40 hg nodef
40 hg nodef
41 hg help nodef
41 hg help nodef
42
42
43 cd alias
43 cd alias
44
44
45 echo '% no usage'
45 echo '% no usage'
46 hg nousage
46 hg nousage
47
47
48 echo foo > foo
48 echo foo > foo
49 hg ci -Amfoo
49 hg ci -Amfoo
50
50
51 echo '% with opts'
51 echo '% with opts'
52 hg cleanst
52 hg cleanst
53
53
54 echo '% with opts and whitespace'
54 echo '% with opts and whitespace'
55 hg shortlog
55 hg shortlog
56
56
57 echo '% interaction with defaults'
57 echo '% interaction with defaults'
58 hg mylog
58 hg mylog
59 hg lognull
59 hg lognull
60
60
61 echo '% properly recursive'
61 echo '% properly recursive'
62 hg dln
62 hg dln
63
63
64 echo '% path expanding'
64 echo '% path expanding'
65 hg put
65 FOO=`pwd` hg put
66 cat 0.diff
66 cat 0.diff
General Comments 0
You need to be logged in to leave comments. Login now