hgext/keyword.py
changeset 20667 e96e9f805c19
parent 20240 60c4d76b79b5
child 20668 3a35ba2681ec
--- a/hgext/keyword.py	Sat Mar 08 16:01:58 2014 -0600
+++ b/hgext/keyword.py	Sat Mar 08 16:14:08 2014 -0600
@@ -218,9 +218,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())