Mercurial > hg
comparison tests/test-alias.t @ 22162:7ada34676db8
help: provide help of bad alias without executing aliascmd()
The output is slightly changed because of minirst formatting. Previously,
ui.pushbuffer() had no effect because "badalias" message was written to stderr.
"if not unknowncmd" should no longer be needed because there's no call loop.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Wed, 13 Aug 2014 19:38:47 +0900 |
parents | db7921812f56 |
children | 01ef4347e4ab |
comparison
equal
deleted
inserted
replaced
22161:063628423fd1 | 22162:7ada34676db8 |
---|---|
96 | 96 |
97 (use "hg help extensions" for information on enabling extensions) | 97 (use "hg help extensions" for information on enabling extensions) |
98 [255] | 98 [255] |
99 $ hg help disabled | 99 $ hg help disabled |
100 alias 'disabled' resolves to unknown command 'email' | 100 alias 'disabled' resolves to unknown command 'email' |
101 | |
101 'email' is provided by the following extension: | 102 'email' is provided by the following extension: |
102 | 103 |
103 patchbomb command to send changesets as (a series of) patch emails | 104 patchbomb command to send changesets as (a series of) patch emails |
104 | 105 |
105 (use "hg help extensions" for information on enabling extensions) | 106 (use "hg help extensions" for information on enabling extensions) |
127 | 128 |
128 $ hg no--cwd | 129 $ hg no--cwd |
129 error in definition for alias 'no--cwd': --cwd may only be given on the command line | 130 error in definition for alias 'no--cwd': --cwd may only be given on the command line |
130 [255] | 131 [255] |
131 $ hg help no--cwd | 132 $ hg help no--cwd |
132 error in definition for alias 'no--cwd': --cwd may only be given on the command line | 133 error in definition for alias 'no--cwd': --cwd may only be given on the |
134 command line | |
133 $ hg no-R | 135 $ hg no-R |
134 error in definition for alias 'no-R': -R may only be given on the command line | 136 error in definition for alias 'no-R': -R may only be given on the command line |
135 [255] | 137 [255] |
136 $ hg help no-R | 138 $ hg help no-R |
137 error in definition for alias 'no-R': -R may only be given on the command line | 139 error in definition for alias 'no-R': -R may only be given on the command line |
138 $ hg no--repo | 140 $ hg no--repo |
139 error in definition for alias 'no--repo': --repo may only be given on the command line | 141 error in definition for alias 'no--repo': --repo may only be given on the command line |
140 [255] | 142 [255] |
141 $ hg help no--repo | 143 $ hg help no--repo |
142 error in definition for alias 'no--repo': --repo may only be given on the command line | 144 error in definition for alias 'no--repo': --repo may only be given on the |
145 command line | |
143 $ hg no--repository | 146 $ hg no--repository |
144 error in definition for alias 'no--repository': --repository may only be given on the command line | 147 error in definition for alias 'no--repository': --repository may only be given on the command line |
145 [255] | 148 [255] |
146 $ hg help no--repository | 149 $ hg help no--repository |
147 error in definition for alias 'no--repository': --repository may only be given on the command line | 150 error in definition for alias 'no--repository': --repository may only be given |
151 on the command line | |
148 $ hg no--config | 152 $ hg no--config |
149 error in definition for alias 'no--config': --config may only be given on the command line | 153 error in definition for alias 'no--config': --config may only be given on the command line |
150 [255] | 154 [255] |
151 | 155 |
152 optional repository | 156 optional repository |