--- a/tests/test-template-keywords.t Wed Aug 29 18:52:09 2018 +0300
+++ b/tests/test-template-keywords.t Sun Aug 05 16:14:18 2018 +0900
@@ -745,6 +745,30 @@
$ hg rm a
$ hg ci -m "Modify, add, remove, rename"
+Test files list:
+
+ $ hg log -l1 -T '{join(file_mods, " ")}\n'
+ third
+ $ hg log -l1 -T '{file_mods % "{file}\n"}'
+ third
+ $ hg log -l1 -T '{file_mods % "{path}\n"}'
+ third
+
+ $ hg log -l1 -T '{join(files, " ")}\n'
+ a b fifth fourth third
+ $ hg log -l1 -T '{files % "{file}\n"}'
+ a
+ b
+ fifth
+ fourth
+ third
+ $ hg log -l1 -T '{files % "{path}\n"}'
+ a
+ b
+ fifth
+ fourth
+ third
+
Test index keyword:
$ hg log -l 2 -T '{index + 10}{files % " {index}:{file}"}\n'