equal
deleted
inserted
replaced
151 '''Replaces keywords in data with expanded template.''' |
151 '''Replaces keywords in data with expanded template.''' |
152 def kwsub(mobj): |
152 def kwsub(mobj): |
153 kw = mobj.group(1) |
153 kw = mobj.group(1) |
154 self.ct.use_template(self.templates[kw]) |
154 self.ct.use_template(self.templates[kw]) |
155 self.ui.pushbuffer() |
155 self.ui.pushbuffer() |
156 self.ct.show(changenode=node, root=self.repo.root, file=path) |
156 self.ct.show(self.repo[node], root=self.repo.root, file=path) |
157 ekw = templatefilters.firstline(self.ui.popbuffer()) |
157 ekw = templatefilters.firstline(self.ui.popbuffer()) |
158 return '$%s: %s $' % (kw, ekw) |
158 return '$%s: %s $' % (kw, ekw) |
159 return subfunc(kwsub, data) |
159 return subfunc(kwsub, data) |
160 |
160 |
161 def expand(self, path, node, data): |
161 def expand(self, path, node, data): |