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) |