diff -r 49bef9bfeb50 -r b420a21eb9e5 hgkw/keyword.py --- 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())