comparison tests/test-template-basic.t @ 40618:ff8b2886c492

templater: check invalid use of list expression properly (issue5920) The error message is still cryptic, but it should be better.
author Yuya Nishihara <yuya@tcha.org>
date Tue, 13 Nov 2018 22:15:30 +0900
parents b4cfd803b3f2
children e48fdeb08c77
comparison
equal deleted inserted replaced
40614:aa588bf40a08 40618:ff8b2886c492
186 186
187 Call function which takes named arguments by filter syntax: 187 Call function which takes named arguments by filter syntax:
188 188
189 $ hg debugtemplate '{" "|separate}' 189 $ hg debugtemplate '{" "|separate}'
190 $ hg debugtemplate '{("not", "an", "argument", "list")|separate}' 190 $ hg debugtemplate '{("not", "an", "argument", "list")|separate}'
191 hg: parse error: unknown method 'list' 191 hg: parse error: can't use a list in this context
192 (check place of comma and parens)
192 [255] 193 [255]
193 194
194 Second branch starting at nullrev: 195 Second branch starting at nullrev:
195 196
196 $ hg update null 197 $ hg update null