# HG changeset patch # User Christian Ebert # Date 1168005070 -3600 # Node ID 7311b30cdb58b0b39dff3d2e547f7eb87ba6534a # Parent 8a8d305966400607c9310ae5e433d1bbb8998913 Remove kwfilelog.add() -- seems to work with current kw_re diff -r 8a8d30596640 -r 7311b30cdb58 hgkw/keyword.py --- a/hgkw/keyword.py Thu Jan 04 14:18:15 2007 +0100 +++ b/hgkw/keyword.py Fri Jan 05 14:51:10 2007 +0100 @@ -117,16 +117,6 @@ data) return data - def add(self, text, meta, tr, link, p1=None, p2=None): - if not self._path.startswith('.hg') and not util.binary(text): - for mf in kwfmatchers(ui, self._repo): - if mf(self._path): - ui.debug(_('removing keyword substitutions in %s\n') - % self._path) - text = re_kw.sub(r'$\1$', text) - break - return super(kwfilelog, self).add(text, meta, tr, link, p1, p2) - def size(self, rev): '''Overrides filelog's size() to use kwfilelog.read().''' node = revlog.node(self, rev)