hgkw/keyword.py
changeset 1356 d9c3f8002e7c
parent 1354 d8c31683af2e
child 1357 a9e00192f30a
--- a/hgkw/keyword.py	Tue Mar 04 17:24:44 2014 +0000
+++ b/hgkw/keyword.py	Thu Mar 13 11:19:32 2014 +0000
@@ -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())