Mercurial > public > mercurial-scm > hg
diff hgext/keyword.py @ 20668:3a35ba2681ec
templating: make -T much more flexible
It can now accept styles and paths and references to settings in
[templates].
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 08 Mar 2014 17:38:50 -0600 |
parents | e96e9f805c19 |
children | 49f2d5644f04 |
line wrap: on
line diff
--- a/hgext/keyword.py Sat Mar 08 16:14:08 2014 -0600 +++ b/hgext/keyword.py Sat Mar 08 17:38:50 2014 -0600 @@ -218,7 +218,7 @@ '''Replaces keywords in data with expanded template.''' def kwsub(mobj): kw = mobj.group(1) - ct = cmdutil.changeset_templater(self.ui, self.repo, False, None + ct = cmdutil.changeset_templater(self.ui, self.repo, False, None, self.templates[kw], '', False) self.ui.pushbuffer() ct.show(ctx, root=self.repo.root, file=path)