##// END OF EJS Templates
tests: don't use alias...
Mads Kiilerich -
r16013:2a1d9763 stable
parent child Browse files
Show More
@@ -71,6 +71,7 b' testpats = ['
71 71 (r'[^>\n]>\s*\$HGRCPATH', "don't overwrite $HGRCPATH, append to it"),
72 72 (r'^stop\(\)', "don't use 'stop' as a shell function name"),
73 73 (r'(\[|\btest\b).*-e ', "don't use 'test -e', use 'test -f'"),
74 (r'^alias\b.*=', "don't use alias, use a function"),
74 75 ],
75 76 # warnings
76 77 []
@@ -2,7 +2,7 b''
2 2 > [extensions]
3 3 > graphlog=
4 4 > EOF
5 $ alias hgph='hg log -G --template "{rev} {phase} {desc} - {node|short}\n"'
5 $ hgph() { hg log -G --template "{rev} {phase} {desc} - {node|short}\n" $*; }
6 6
7 7 $ mkcommit() {
8 8 > echo "$1" > "$1"
@@ -1,4 +1,4 b''
1 $ alias hglog='hg log --template "{rev} {phaseidx} {desc}\n"'
1 $ hglog() { hg log --template "{rev} {phaseidx} {desc}\n" $*; }
2 2 $ mkcommit() {
3 3 > echo "$1" > "$1"
4 4 > hg add "$1"
General Comments 0
You need to be logged in to leave comments. Login now