Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 31173:052e4f1ffce9
branches: populate all template keywords in formatter
This is a usage example of fm.context().
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 25 Feb 2017 17:08:42 +0900 |
parents | fad5e299cfc7 |
children | 426b3d1e82d0 |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Feb 25 17:00:07 2017 +0900 +++ b/mercurial/commands.py Sat Feb 25 17:08:42 2017 +0900 @@ -1258,6 +1258,7 @@ fmt = ' ' * padsize + ' %d:%s' fm.condwrite(not ui.quiet, 'rev node', fmt, rev, hexfunc(ctx.node()), label='log.changeset changeset.%s' % ctx.phasestr()) + fm.context(ctx=ctx) fm.data(active=isactive, closed=not isopen, current=current) if not ui.quiet: fm.plain(notice)