tests/test-command-template.t
changeset 28349 7cb2f2438f85
parent 28346 542d200bd261
child 28373 9a9dd71e882c
--- a/tests/test-command-template.t	Sun Feb 14 13:30:32 2016 +0900
+++ b/tests/test-command-template.t	Sun Feb 14 13:58:46 2016 +0900
@@ -2790,6 +2790,14 @@
   $ hg log -R latesttag -r tip --template 'modified files: {file_mods % " {file}\n"}\n'
   modified files:  .hgtags
   
+
+  $ hg log -R latesttag -r tip -T '{rev % "a"}\n'
+  hg: parse error: keyword 'rev' is not iterable
+  [255]
+  $ hg log -R latesttag -r tip -T '{get(extras, "unknown") % "a"}\n'
+  hg: parse error: None is not iterable
+  [255]
+
 Test the sub function of templating for expansion:
 
   $ hg log -R latesttag -r 10 --template '{sub("[0-9]", "x", "{rev}")}\n'