diff hgext/keyword.py @ 20667:e96e9f805c19

changeset_templater: remove use_template method
author Matt Mackall <mpm@selenic.com>
date Sat, 08 Mar 2014 16:14:08 -0600
parents 60c4d76b79b5
children 3a35ba2681ec
line wrap: on
line diff
--- 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())