--- 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())