Mercurial > hg
comparison tests/test-revset-legacy-lookup.t @ 45895:fc4fb2f17dd4
errors: use exit code 10 for parse errors
Now that `ParseError`s raised while reading the config file has been
converted into `ConfigError`s, the remaining parse errors should all
be "input errors" (i.e. exit code 10), according to
https://www.mercurial-scm.org/wiki/ErrorCategoriesPlan.
Differential Revision: https://phab.mercurial-scm.org/D9332
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 16 Nov 2020 16:00:50 -0800 |
parents | ed84a4d48910 |
children | 95c4cca641f6 |
comparison
equal
deleted
inserted
replaced
45894:9dc1351d0b5f | 45895:fc4fb2f17dd4 |
---|---|
170 | 170 |
171 $ hg log -r 'release_4.1(candidate1)' | 171 $ hg log -r 'release_4.1(candidate1)' |
172 6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)] | 172 6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)] |
173 $ hg log -r '(release_4.1(candidate1))' | 173 $ hg log -r '(release_4.1(candidate1))' |
174 hg: parse error: unknown identifier: release_4.1 | 174 hg: parse error: unknown identifier: release_4.1 |
175 [255] | 175 [10] |
176 $ hg log -r 'revset(release_4.1(candidate1))' | 176 $ hg log -r 'revset(release_4.1(candidate1))' |
177 hg: parse error: unknown identifier: release_4.1 | 177 hg: parse error: unknown identifier: release_4.1 |
178 [255] | 178 [10] |
179 $ hg log -r '"release_4.1(candidate1)"' | 179 $ hg log -r '"release_4.1(candidate1)"' |
180 6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)] | 180 6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)] |
181 $ hg log -r '("release_4.1(candidate1)")' | 181 $ hg log -r '("release_4.1(candidate1)")' |
182 6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)] | 182 6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)] |
183 $ hg log -r '::"release_4.1(candidate1)"' | 183 $ hg log -r '::"release_4.1(candidate1)"' |
188 4:bbf52b87b370 Added tag foo-bar for changeset a50aae922707 [foo+bar] | 188 4:bbf52b87b370 Added tag foo-bar for changeset a50aae922707 [foo+bar] |
189 5:ff42fde8edbb Added tag foo+bar for changeset bbf52b87b370 [1.2] | 189 5:ff42fde8edbb Added tag foo+bar for changeset bbf52b87b370 [1.2] |
190 6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)] | 190 6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)] |
191 $ hg log -r '::release_4.1(candidate1)' | 191 $ hg log -r '::release_4.1(candidate1)' |
192 hg: parse error: unknown identifier: release_4.1 | 192 hg: parse error: unknown identifier: release_4.1 |
193 [255] | 193 [10] |
194 | 194 |
195 Test tag with parenthesis and other function like char | 195 Test tag with parenthesis and other function like char |
196 | 196 |
197 $ hg tag 'release_4.1(arch=x86,arm)' | 197 $ hg tag 'release_4.1(arch=x86,arm)' |
198 | 198 |
199 $ hg log -r 'release_4.1(arch=x86,arm)' | 199 $ hg log -r 'release_4.1(arch=x86,arm)' |
200 7:b29b25d7d687 Added tag release_4.1(candidate1) for changeset db72e24fe069 [release_4.1(arch=x86,arm)] | 200 7:b29b25d7d687 Added tag release_4.1(candidate1) for changeset db72e24fe069 [release_4.1(arch=x86,arm)] |
201 $ hg log -r '(release_4.1(arch=x86,arm))' | 201 $ hg log -r '(release_4.1(arch=x86,arm))' |
202 hg: parse error: unknown identifier: release_4.1 | 202 hg: parse error: unknown identifier: release_4.1 |
203 [255] | 203 [10] |
204 $ hg log -r 'revset(release_4.1(arch=x86,arm))' | 204 $ hg log -r 'revset(release_4.1(arch=x86,arm))' |
205 hg: parse error: unknown identifier: release_4.1 | 205 hg: parse error: unknown identifier: release_4.1 |
206 [255] | 206 [10] |
207 $ hg log -r '"release_4.1(arch=x86,arm)"' | 207 $ hg log -r '"release_4.1(arch=x86,arm)"' |
208 7:b29b25d7d687 Added tag release_4.1(candidate1) for changeset db72e24fe069 [release_4.1(arch=x86,arm)] | 208 7:b29b25d7d687 Added tag release_4.1(candidate1) for changeset db72e24fe069 [release_4.1(arch=x86,arm)] |
209 $ hg log -r '("release_4.1(arch=x86,arm)")' | 209 $ hg log -r '("release_4.1(arch=x86,arm)")' |
210 7:b29b25d7d687 Added tag release_4.1(candidate1) for changeset db72e24fe069 [release_4.1(arch=x86,arm)] | 210 7:b29b25d7d687 Added tag release_4.1(candidate1) for changeset db72e24fe069 [release_4.1(arch=x86,arm)] |
211 $ hg log -r '::"release_4.1(arch=x86,arm)"' | 211 $ hg log -r '::"release_4.1(arch=x86,arm)"' |
217 5:ff42fde8edbb Added tag foo+bar for changeset bbf52b87b370 [1.2] | 217 5:ff42fde8edbb Added tag foo+bar for changeset bbf52b87b370 [1.2] |
218 6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)] | 218 6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)] |
219 7:b29b25d7d687 Added tag release_4.1(candidate1) for changeset db72e24fe069 [release_4.1(arch=x86,arm)] | 219 7:b29b25d7d687 Added tag release_4.1(candidate1) for changeset db72e24fe069 [release_4.1(arch=x86,arm)] |
220 $ hg log -r '::release_4.1(arch=x86,arm)' | 220 $ hg log -r '::release_4.1(arch=x86,arm)' |
221 hg: parse error: unknown identifier: release_4.1 | 221 hg: parse error: unknown identifier: release_4.1 |
222 [255] | 222 [10] |
223 | 223 |
224 Test tag conflicting with revset function | 224 Test tag conflicting with revset function |
225 | 225 |
226 $ hg tag 'secret(team=foo,project=bar)' | 226 $ hg tag 'secret(team=foo,project=bar)' |
227 | 227 |
228 $ hg log -r 'secret(team=foo,project=bar)' | 228 $ hg log -r 'secret(team=foo,project=bar)' |
229 8:6b2e2d4ea455 Added tag release_4.1(arch=x86,arm) for changeset b29b25d7d687 [secret(team=foo,project=bar)] | 229 8:6b2e2d4ea455 Added tag release_4.1(arch=x86,arm) for changeset b29b25d7d687 [secret(team=foo,project=bar)] |
230 $ hg log -r '(secret(team=foo,project=bar))' | 230 $ hg log -r '(secret(team=foo,project=bar))' |
231 hg: parse error: secret takes no arguments | 231 hg: parse error: secret takes no arguments |
232 [255] | 232 [10] |
233 $ hg log -r 'revset(secret(team=foo,project=bar))' | 233 $ hg log -r 'revset(secret(team=foo,project=bar))' |
234 hg: parse error: secret takes no arguments | 234 hg: parse error: secret takes no arguments |
235 [255] | 235 [10] |
236 $ hg log -r '"secret(team=foo,project=bar)"' | 236 $ hg log -r '"secret(team=foo,project=bar)"' |
237 8:6b2e2d4ea455 Added tag release_4.1(arch=x86,arm) for changeset b29b25d7d687 [secret(team=foo,project=bar)] | 237 8:6b2e2d4ea455 Added tag release_4.1(arch=x86,arm) for changeset b29b25d7d687 [secret(team=foo,project=bar)] |
238 $ hg log -r '("secret(team=foo,project=bar)")' | 238 $ hg log -r '("secret(team=foo,project=bar)")' |
239 8:6b2e2d4ea455 Added tag release_4.1(arch=x86,arm) for changeset b29b25d7d687 [secret(team=foo,project=bar)] | 239 8:6b2e2d4ea455 Added tag release_4.1(arch=x86,arm) for changeset b29b25d7d687 [secret(team=foo,project=bar)] |
240 $ hg log -r '::"secret(team=foo,project=bar)"' | 240 $ hg log -r '::"secret(team=foo,project=bar)"' |
247 6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)] | 247 6:db72e24fe069 Added tag 1.2 for changeset ff42fde8edbb [release_4.1(candidate1)] |
248 7:b29b25d7d687 Added tag release_4.1(candidate1) for changeset db72e24fe069 [release_4.1(arch=x86,arm)] | 248 7:b29b25d7d687 Added tag release_4.1(candidate1) for changeset db72e24fe069 [release_4.1(arch=x86,arm)] |
249 8:6b2e2d4ea455 Added tag release_4.1(arch=x86,arm) for changeset b29b25d7d687 [secret(team=foo,project=bar)] | 249 8:6b2e2d4ea455 Added tag release_4.1(arch=x86,arm) for changeset b29b25d7d687 [secret(team=foo,project=bar)] |
250 $ hg log -r '::secret(team=foo,project=bar)' | 250 $ hg log -r '::secret(team=foo,project=bar)' |
251 hg: parse error: secret takes no arguments | 251 hg: parse error: secret takes no arguments |
252 [255] | 252 [10] |
253 | 253 |
254 Test tag with space | 254 Test tag with space |
255 | 255 |
256 $ hg tag 'my little version' | 256 $ hg tag 'my little version' |
257 | 257 |
259 9:269192bf8fc3 Added tag secret(team=foo,project=bar) for changeset 6b2e2d4ea455 [my little version] | 259 9:269192bf8fc3 Added tag secret(team=foo,project=bar) for changeset 6b2e2d4ea455 [my little version] |
260 $ hg log -r '(my little version)' | 260 $ hg log -r '(my little version)' |
261 hg: parse error at 4: unexpected token: symbol | 261 hg: parse error at 4: unexpected token: symbol |
262 ((my little version) | 262 ((my little version) |
263 ^ here) | 263 ^ here) |
264 [255] | 264 [10] |
265 $ hg log -r 'revset(my little version)' | 265 $ hg log -r 'revset(my little version)' |
266 hg: parse error at 10: unexpected token: symbol | 266 hg: parse error at 10: unexpected token: symbol |
267 (revset(my little version) | 267 (revset(my little version) |
268 ^ here) | 268 ^ here) |
269 [255] | 269 [10] |
270 $ hg log -r '"my little version"' | 270 $ hg log -r '"my little version"' |
271 9:269192bf8fc3 Added tag secret(team=foo,project=bar) for changeset 6b2e2d4ea455 [my little version] | 271 9:269192bf8fc3 Added tag secret(team=foo,project=bar) for changeset 6b2e2d4ea455 [my little version] |
272 $ hg log -r '("my little version")' | 272 $ hg log -r '("my little version")' |
273 9:269192bf8fc3 Added tag secret(team=foo,project=bar) for changeset 6b2e2d4ea455 [my little version] | 273 9:269192bf8fc3 Added tag secret(team=foo,project=bar) for changeset 6b2e2d4ea455 [my little version] |
274 $ hg log -r '::"my little version"' | 274 $ hg log -r '::"my little version"' |
284 9:269192bf8fc3 Added tag secret(team=foo,project=bar) for changeset 6b2e2d4ea455 [my little version] | 284 9:269192bf8fc3 Added tag secret(team=foo,project=bar) for changeset 6b2e2d4ea455 [my little version] |
285 $ hg log -r '::my little version' | 285 $ hg log -r '::my little version' |
286 hg: parse error at 5: invalid token | 286 hg: parse error at 5: invalid token |
287 (::my little version | 287 (::my little version |
288 ^ here) | 288 ^ here) |
289 [255] | 289 [10] |