Mercurial > public > mercurial-scm > hg
diff mercurial/templatekw.py @ 34535:78590585c0db
templater: add dot operator to easily access a sub item
This and the next patch will allow us to access a deeply-nested item
by foo.bar.baz syntax.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 09 Sep 2017 19:32:56 +0900 |
parents | b3073e175c17 |
children | 8c3dd5e462cc |
line wrap: on
line diff
--- a/mercurial/templatekw.py Sat Sep 09 19:13:25 2017 +0900 +++ b/mercurial/templatekw.py Sat Sep 09 19:32:56 2017 +0900 @@ -73,6 +73,7 @@ This class allows us to handle both: - "{manifest}" - "{manifest % '{rev}:{node}'}" + - "{manifest.rev}" Unlike a _hybrid, this does not simulate the behavior of the underling value. Use unwrapvalue() or unwraphybrid() to obtain the inner object.