equal
deleted
inserted
replaced
137 for k in templates.keys(): |
137 for k in templates.keys(): |
138 templates[k] = templater.parsestring(templates[k], |
138 templates[k] = templater.parsestring(templates[k], |
139 quoted=False) |
139 quoted=False) |
140 self.templates = templates or deftemplates |
140 self.templates = templates or deftemplates |
141 self.re_kw = re.compile(r'\$(%s)[^$]*?\$' % |
141 self.re_kw = re.compile(r'\$(%s)[^$]*?\$' % |
142 '|'.join(re.escape(k) for k in self.templates.keys())) |
142 '|'.join([re.escape(k) for k in self.templates.keys()])) |
143 templater.common_filters['utcdate'] = utcdate |
143 templater.common_filters['utcdate'] = utcdate |
144 try: |
144 try: |
145 self.t = cmdutil.changeset_templater(ui, repo, |
145 self.t = cmdutil.changeset_templater(ui, repo, |
146 False, '', False) |
146 False, '', False) |
147 except TypeError: |
147 except TypeError: |