Remove kwfilelog.add() -- seems to work with current kw_re solo-extension
authorChristian Ebert <blacktrash@gmx.net>
Fri, 05 Jan 2007 14:51:10 +0100
branchsolo-extension
changeset 67 7311b30cdb58
parent 66 8a8d30596640
child 68 b285ab731fff
Remove kwfilelog.add() -- seems to work with current kw_re
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)