hgkw/keyword.py
branchstable
changeset 523 062ce3b9c962
parent 522 1dc08efd8e81
child 525 6028e8046c14
equal deleted inserted replaced
522:1dc08efd8e81 523:062ce3b9c962
   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)