comparison tests/test-dispatch.t @ 45906:95c4cca641f6

errors: remove trailing "!" from some error messages for consistency Some types of exceptions had a trailing "!" printed after the message from the exception itself. I guess some of these errors seem a little more severe (?), but it seems more likely that the inconsistency was just an oversight. Differential Revision: https://phab.mercurial-scm.org/D9378
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 23 Nov 2020 11:18:48 -0800
parents 9dc1351d0b5f
children ca39c45014fa
comparison
equal deleted inserted replaced
45905:e131dbf6ee15 45906:95c4cca641f6
39 (use 'hg log -h' to show more help) 39 (use 'hg log -h' to show more help)
40 40
41 "--" may be an option value: 41 "--" may be an option value:
42 42
43 $ hg -R -- log 43 $ hg -R -- log
44 abort: repository -- not found! 44 abort: repository -- not found
45 [255] 45 [255]
46 $ hg log -R -- 46 $ hg log -R --
47 abort: repository -- not found! 47 abort: repository -- not found
48 [255] 48 [255]
49 $ hg log -T -- 49 $ hg log -T --
50 -- (no-eol) 50 -- (no-eol)
51 $ hg log -T -- -k nomatch 51 $ hg log -T -- -k nomatch
52 52
124 Early options must come first if HGPLAIN=+strictflags is specified: 124 Early options must come first if HGPLAIN=+strictflags is specified:
125 (BUG: chg cherry-picks early options to pass them as a server command) 125 (BUG: chg cherry-picks early options to pass them as a server command)
126 126
127 #if no-chg 127 #if no-chg
128 $ HGPLAIN=+strictflags hg log -b --config='hooks.pre-log=false' default 128 $ HGPLAIN=+strictflags hg log -b --config='hooks.pre-log=false' default
129 abort: unknown revision '--config=hooks.pre-log=false'! 129 abort: unknown revision '--config=hooks.pre-log=false'
130 [255] 130 [255]
131 $ HGPLAIN=+strictflags hg log -b -R. default 131 $ HGPLAIN=+strictflags hg log -b -R. default
132 abort: unknown revision '-R.'! 132 abort: unknown revision '-R.'
133 [255] 133 [255]
134 $ HGPLAIN=+strictflags hg log -b --cwd=. default 134 $ HGPLAIN=+strictflags hg log -b --cwd=. default
135 abort: unknown revision '--cwd=.'! 135 abort: unknown revision '--cwd=.'
136 [255] 136 [255]
137 #endif 137 #endif
138 $ HGPLAIN=+strictflags hg log -b --debugger default 138 $ HGPLAIN=+strictflags hg log -b --debugger default
139 abort: unknown revision '--debugger'! 139 abort: unknown revision '--debugger'
140 [255] 140 [255]
141 $ HGPLAIN=+strictflags hg log -b --config='alias.log=!echo pwned' default 141 $ HGPLAIN=+strictflags hg log -b --config='alias.log=!echo pwned' default
142 abort: unknown revision '--config=alias.log=!echo pwned'! 142 abort: unknown revision '--config=alias.log=!echo pwned'
143 [255] 143 [255]
144 144
145 $ HGPLAIN=+strictflags hg log --config='hooks.pre-log=false' -b default 145 $ HGPLAIN=+strictflags hg log --config='hooks.pre-log=false' -b default
146 abort: option --config may not be abbreviated! 146 abort: option --config may not be abbreviated!
147 [255] 147 [255]
195 #if no-outer-repo 195 #if no-outer-repo
196 196
197 No repo: 197 No repo:
198 198
199 $ hg cat 199 $ hg cat
200 abort: no repository found in '$TESTTMP' (.hg not found)! 200 abort: no repository found in '$TESTTMP' (.hg not found)
201 [255] 201 [255]
202 202
203 #endif 203 #endif
204 204
205 #if rmcwd 205 #if rmcwd