changeset 39587 | 918944f53aac |
parent 39368 | 5b1d406b39f1 |
child 39600 | 87428152e820 |
--- a/tests/test-template-keywords.t Sun Jul 29 21:25:37 2018 +0900 +++ b/tests/test-template-keywords.t Sun Jul 29 21:28:51 2018 +0900 @@ -787,6 +787,15 @@ $ hg log -r8 -C -T '{file_copies_switch % "{path} <- {source}\n"}' fourth <- second +Test file attributes: + + $ hg log -l1 -T '{files % "{pad(size, 3, left=True)} {path}\n"}' + a + 0 b + 7 fifth + fourth + 13 third + Test index keyword: $ hg log -l 2 -T '{index + 10}{files % " {index}:{file}"}\n'