diff tests/test-command-template.t @ 38283:4b0f39e7406e

templater: show slightly better hint on map operation error It was super hard to find where the templater went wrong if a keyword was evaluated to '' or None.
author Yuya Nishihara <yuya@tcha.org>
date Fri, 08 Jun 2018 20:57:54 +0900
parents fb874fc1d9b4
children aaed058a0390
line wrap: on
line diff
--- a/tests/test-command-template.t	Wed Mar 21 12:28:12 2018 +0900
+++ b/tests/test-command-template.t	Fri Jun 08 20:57:54 2018 +0900
@@ -3213,6 +3213,7 @@
 
   $ hg log -R latesttag -r tip -T '{rev % "a"}\n'
   hg: parse error: 11 is not iterable of mappings
+  (keyword 'rev' does not support map operation)
   [255]
   $ hg log -R latesttag -r tip -T '{get(extras, "unknown") % "a"}\n'
   hg: parse error: None is not iterable of mappings