hgkw/keyword.py
branchstable
changeset 1353 b420a21eb9e5
parent 1316 c7c23e04673e
child 1354 d8c31683af2e
--- a/hgkw/keyword.py	Tue Mar 04 09:56:59 2014 -0600
+++ b/hgkw/keyword.py	Sat Mar 08 16:14:08 2014 -0600
@@ -217,9 +217,8 @@
         '''Replaces keywords in data with expanded template.'''
         def kwsub(mobj):
             kw = mobj.group(1)
-            ct = cmdutil.changeset_templater(self.ui, self.repo,
-                                             False, None, '', False)
-            ct.use_template(self.templates[kw])
+            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)
             ekw = templatefilters.firstline(self.ui.popbuffer())