diff tests/test-annotate.t @ 36714:2a258985ffeb

revsetlang: add a hint for more useful parse errors This logic is largely based on the similar logic added to template error messages in D2608 and D2609, but with a few tweaks based on how revsets actually work. Differential Revision: https://phab.mercurial-scm.org/D2619
author Ryan McElroy <rmcelroy@fb.com>
date Sat, 03 Mar 2018 15:31:37 -0800
parents feecfefeba25
children b529e640015d
line wrap: on
line diff
--- a/tests/test-annotate.t	Sat Mar 03 11:07:46 2018 -0800
+++ b/tests/test-annotate.t	Sat Mar 03 15:31:37 2018 -0800
@@ -814,6 +814,8 @@
   [255]
   $ hg log -r 'followlines(baz, 2:4, startrev=20, descend=[1])'
   hg: parse error at 43: not a prefix: [
+  (followlines(baz, 2:4, startrev=20, descend=[1])
+                                              ^ here)
   [255]
   $ hg log -r 'followlines(baz, 2:4, startrev=20, descend=a)'
   hg: parse error: descend argument must be a boolean