templating: make -T much more flexible stable
authorMatt Mackall <mpm@selenic.com>
Sat, 08 Mar 2014 17:38:50 -0600
branchstable
changeset 1354 d8c31683af2e
parent 1353 b420a21eb9e5
child 1355 238b6ca6d2bb
templating: make -T much more flexible It can now accept styles and paths and references to settings in [templates]. [ original upstream message ]
hgkw/keyword.py
--- 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)