comparison tests/test-alias @ 9993:8bce1e0d2801 stable

alias: do not crash when aliased command has no usage help text
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Thu, 03 Dec 2009 14:14:44 +0900
parents 21688b8a594b
children 0022f5c5459e
comparison
equal deleted inserted replaced
9989:60cefb8b3c85 9993:8bce1e0d2801
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 16
16 [defaults] 17 [defaults]
17 mylog = -q 18 mylog = -q
18 lognull = -q 19 lognull = -q
19 log = -v 20 log = -v
33 34
34 echo '% no definition' 35 echo '% no definition'
35 hg nodef 36 hg nodef
36 37
37 cd alias 38 cd alias
39
40 echo '% no usage'
41 hg nousage
42
38 echo foo > foo 43 echo foo > foo
39 hg ci -Amfoo 44 hg ci -Amfoo
40 45
41 echo '% with opts' 46 echo '% with opts'
42 hg cleanst 47 hg cleanst