equal
deleted
inserted
replaced
137 kwpat = r'\$(%s)(: [^$\n\r]*? )??\$' % '|'.join(escaped) |
137 kwpat = r'\$(%s)(: [^$\n\r]*? )??\$' % '|'.join(escaped) |
138 self.re_kw = re.compile(kwpat) |
138 self.re_kw = re.compile(kwpat) |
139 |
139 |
140 templatefilters.filters['utcdate'] = utcdate |
140 templatefilters.filters['utcdate'] = utcdate |
141 self.ct = cmdutil.changeset_templater(self.ui, self.repo, |
141 self.ct = cmdutil.changeset_templater(self.ui, self.repo, |
142 False, '', False) |
142 False, None, '', False) |
143 |
143 |
144 def substitute(self, data, path, ctx, subfunc): |
144 def substitute(self, data, path, ctx, subfunc): |
145 '''Replaces keywords in data with expanded template.''' |
145 '''Replaces keywords in data with expanded template.''' |
146 def kwsub(mobj): |
146 def kwsub(mobj): |
147 kw = mobj.group(1) |
147 kw = mobj.group(1) |