Mercurial > hg-stable
diff tests/test-annotate.t @ 37500:8bb3899a0f47
formatter: make nested items somewhat readable in template output
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 15 Mar 2018 22:27:16 +0900 |
parents | 435481393198 |
children | 40c7347f6848 |
line wrap: on
line diff
--- a/tests/test-annotate.t Sun Mar 18 23:36:52 2018 +0900 +++ b/tests/test-annotate.t Thu Mar 15 22:27:16 2018 +0900 @@ -90,6 +90,28 @@ > EOF $ hg ci -mb2 -d '2 0' +default output of '{lines}' should be readable + + $ hg annotate -T'{lines}' a + 0: a + 1: a + 1: a + $ hg annotate -T'{join(lines, "\n")}' a + 0: a + + 1: a + + 1: a + +several filters can be applied to '{lines}' + + $ hg annotate -T'{lines|stringify}' a + 0: a + 1: a + 1: a + $ hg annotate -T'{lines|count}\n' a + 3 + annotate multiple files (JSON) $ hg annotate -Tjson a b