# HG changeset patch # User Christian Ebert # Date 1271074376 -7200 # Node ID 5f71db3fe3b51962e0a34760613a6d213ebce2c2 # Parent e73750804c3e272f27e52038a926e1699a622cda# Parent 676de4ffd778e2bccbdfe4f3e0bffffaf906e93c Merge with stable diff -r e73750804c3e -r 5f71db3fe3b5 hgkw/keyword.py --- a/hgkw/keyword.py Tue Mar 30 11:08:13 2010 +0100 +++ b/hgkw/keyword.py Mon Apr 12 14:12:56 2010 +0200 @@ -135,13 +135,13 @@ self.re_kw = re.compile(kwpat) templatefilters.filters['utcdate'] = utcdate - self.ct = cmdutil.changeset_templater(self.ui, self.repo, - False, None, '', False) def substitute(self, data, path, ctx, subfunc): '''Replaces keywords in data with expanded template.''' def kwsub(mobj): kw = mobj.group(1) + self.ct = cmdutil.changeset_templater(self.ui, self.repo, + False, None, '', False) self.ct.use_template(self.templates[kw]) self.ui.pushbuffer() self.ct.show(ctx, root=self.repo.root, file=path)