Mercurial > public > mercurial-scm > hg
diff tests/test-fileset.t @ 36685: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 | f6a8a81f4f7b |
children | 0a10f142299d |
line wrap: on
line diff
--- a/tests/test-fileset.t Sat Mar 03 11:07:46 2018 -0800 +++ b/tests/test-fileset.t Sat Mar 03 15:31:37 2018 -0800 @@ -666,7 +666,11 @@ $ fileset "status(' ', '4', added())" hg: parse error at 1: not a prefix: end + ( + ^ here) [255] $ fileset "status('2', ' ', added())" hg: parse error at 1: not a prefix: end + ( + ^ here) [255]