templating: make -T much more flexible
It can now accept styles and paths and references to settings in
[templates].
[ original upstream message ]
--- a/hgkw/keyword.py Sat Mar 08 16:14:08 2014 -0600
+++ b/hgkw/keyword.py Sat Mar 08 17:38:50 2014 -0600
@@ -217,7 +217,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)