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