--- a/hgkw/keyword.py Thu Jan 04 13:13:54 2007 +0100
+++ b/hgkw/keyword.py Thu Jan 04 14:18:15 2007 +0100
@@ -118,10 +118,13 @@
return data
def add(self, text, meta, tr, link, p1=None, p2=None):
- if not util.binary(text):
- ui.debug(_('removing keyword substitutions in %s\n')
- % self._path)
- text = re_kw.sub(r'$\1$', text)
+ 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):