# HG changeset patch # User Matt Mackall # Date 1394316848 21600 # Node ID b420a21eb9e5e3a447bcae2db2e3a45745bc49d5 # Parent 49bef9bfeb50826ac631db1912d1a092150bb802 changeset_templater: remove use_template method [ original upstream message ] 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())