comparison tests/test-export.t @ 36669:80d7fb6c2dec

templater: add hint to template parse errors to help locate issues Previously, we would print the error name and location, but this isn't as helpful as we can be. Let's add a hint that shows the location where we encountered the parse error. Differential Revision: https://phab.mercurial-scm.org/D2608
author Ryan McElroy <rmcelroy@fb.com>
date Sat, 03 Mar 2018 14:23:40 -0800
parents aa3294027936
children 1b179d151578
comparison
equal deleted inserted replaced
36668:e77cee5de1c7 36669:80d7fb6c2dec
216 $ hg export -o '%{"foo"}' tip 216 $ hg export -o '%{"foo"}' tip
217 abort: incomplete format spec in output filename 217 abort: incomplete format spec in output filename
218 [255] 218 [255]
219 $ hg export -o '%m{' tip 219 $ hg export -o '%m{' tip
220 hg: parse error at 3: unterminated template expansion 220 hg: parse error at 3: unterminated template expansion
221 (%m{
222 ^ here)
221 [255] 223 [255]
222 $ hg export -o '%\' tip 224 $ hg export -o '%\' tip
223 abort: invalid format spec '%\' in output filename 225 abort: invalid format spec '%\' in output filename
224 [255] 226 [255]
225 $ hg export -o '\%' tip 227 $ hg export -o '\%' tip