diff tests/test-revset2.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 8591d6afc629
children f74fdab86f16
line wrap: on
line diff
--- a/tests/test-revset2.t	Sat Mar 03 11:07:46 2018 -0800
+++ b/tests/test-revset2.t	Sat Mar 03 15:31:37 2018 -0800
@@ -690,6 +690,8 @@
 
   $ log '1 OR 2'
   hg: parse error at 2: invalid token
+  (1 OR 2
+     ^ here)
   [255]
 
 or operator should preserve ordering:
@@ -1562,6 +1564,8 @@
 test error message of bad revset
   $ hg log -r 'foo\\'
   hg: parse error at 3: syntax error in revset 'foo\\'
+  (foo\\
+      ^ here)
   [255]
 
   $ cd ..