equal
deleted
inserted
replaced
215 |
215 |
216 def substitute(self, data, path, ctx, subfunc): |
216 def substitute(self, data, path, ctx, subfunc): |
217 '''Replaces keywords in data with expanded template.''' |
217 '''Replaces keywords in data with expanded template.''' |
218 def kwsub(mobj): |
218 def kwsub(mobj): |
219 kw = mobj.group(1) |
219 kw = mobj.group(1) |
220 ct = cmdutil.changeset_templater(self.ui, self.repo, False, None |
220 ct = cmdutil.changeset_templater(self.ui, self.repo, False, None, |
221 self.templates[kw], '', False) |
221 self.templates[kw], '', False) |
222 self.ui.pushbuffer() |
222 self.ui.pushbuffer() |
223 ct.show(ctx, root=self.repo.root, file=path) |
223 ct.show(ctx, root=self.repo.root, file=path) |
224 ekw = templatefilters.firstline(self.ui.popbuffer()) |
224 ekw = templatefilters.firstline(self.ui.popbuffer()) |
225 return '$%s: %s $' % (kw, ekw) |
225 return '$%s: %s $' % (kw, ekw) |