diff -r e3eb480a9391 -r e96e9f805c19 hgext/keyword.py --- 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())