hgkw/keyword.py
branchself_initializing_hook
changeset 94 d34486cc99b0
parent 93 9f70f953dd3b
child 96 682e684a15e9
equal deleted inserted replaced
93:9f70f953dd3b 94:d34486cc99b0
   132         def add(self, text, meta, tr, link, p1=None, p2=None):
   132         def add(self, text, meta, tr, link, p1=None, p2=None):
   133             '''Removes keyword substitutions when adding to filelog.'''
   133             '''Removes keyword substitutions when adding to filelog.'''
   134             if self.iskwcandidate(text):
   134             if self.iskwcandidate(text):
   135                 text = re_kw.sub(r'$\1$', text)
   135                 text = re_kw.sub(r'$\1$', text)
   136             return super(kwfilelog, self).add(text,
   136             return super(kwfilelog, self).add(text,
   137                     meta, tr, link, p1=p1, p2=p2)
   137                         meta, tr, link, p1=p1, p2=p2)
   138 
   138 
   139         def cmp(self, node, text):
   139         def cmp(self, node, text):
   140             '''Removes keyword substitutions for comparison.'''
   140             '''Removes keyword substitutions for comparison.'''
   141             if self.iskwcandidate(text):
   141             if self.iskwcandidate(text):
   142                 text = re_kw.sub(r'$\1$', text)
   142                 text = re_kw.sub(r'$\1$', text)