Mercurial > public > mercurial-scm > hg
diff tests/test-command-template.t @ 28333:41373244f4e5
templater: fix revset() to evaluate format arguments eagerly
See the previous patch for why. This patch also removes redundant list()
construction from a list.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 14 Feb 2016 00:27:09 +0900 |
parents | e91371633127 |
children | ac371d4c007f |
line wrap: on
line diff
--- a/tests/test-command-template.t Sun Feb 14 00:18:12 2016 +0900 +++ b/tests/test-command-template.t Sun Feb 14 00:27:09 2016 +0900 @@ -3305,6 +3305,9 @@ $ hg log --template '{revset("TIP"|lower)}\n' -l1 2 + $ hg log -T '{revset("%s", "t{"ip"}")}\n' -l1 + 2 + a list template is evaluated for each item of revset/parents $ hg log -T '{rev} p: {revset("p1(%s)", rev) % "{rev}:{node|short}"}\n'