diff tests/test-log.t @ 36670:44048f1bcee5

templater: provide hint for multi-line templates with parse errors Previously, we punted. Now we "rewrite" the template's newlines to r'\n' and offset the hint appropriately. Differential Revision: https://phab.mercurial-scm.org/D2609
author Ryan McElroy <rmcelroy@fb.com>
date Sat, 03 Mar 2018 14:30:21 -0800
parents 80d7fb6c2dec
children 1b179d151578
line wrap: on
line diff
--- a/tests/test-log.t	Sat Mar 03 14:23:40 2018 -0800
+++ b/tests/test-log.t	Sat Mar 03 14:30:21 2018 -0800
@@ -2304,6 +2304,8 @@
   > {shortest(node}
   > line4\nline5'
   hg: parse error at 28: unexpected token: end
+  (line 1\nline2\n{shortest(node}\nline4\nline5
+                                ^ here)
   [255]
 
   $ cd ..