Mercurial > hg
diff mercurial/help/templates.txt @ 26234:e4609ec959f8
templater: switch ctx of list expression to rev of revset() (BC)
Because revset() function generates a list of revisions, it seems sensible
to switch the ctx as well where a list expression will be evaluated. I think
"{revset(...) % "..."}" expression wasn't considered well when it was
introduced at cda9d2b6beab.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 12 Sep 2015 00:21:41 +0900 |
parents | 51f6940d3b4f |
children | 43bf9471fae9 |
line wrap: on
line diff
--- a/mercurial/help/templates.txt Thu Sep 10 23:32:36 2015 +0900 +++ b/mercurial/help/templates.txt Sat Sep 12 00:21:41 2015 +0900 @@ -106,6 +106,10 @@ $ hg log --template "{ifcontains(rev, revset('.'), '@')}\n" +- Show details of parent revisions:: + + $ hg log --template "{revset('parents(%d)', rev) % '{desc|firstline}\n'}" + - Show only commit descriptions that start with "template":: $ hg log --template "{startswith('template', firstline(desc))}\n"