# HG changeset patch # User Christian Ebert # Date 1167326099 -3600 # Node ID fe891f87a16cf6da06d8bea5b6eaf7f6cf76a13c # Parent 5acfe7dc30866444e3124d75ae1db5fbddb7a30e Use self._path directly instead of assigning f to context.path() diff -r 5acfe7dc3086 -r fe891f87a16c hgkw/keyword.py --- a/hgkw/keyword.py Thu Dec 28 15:06:19 2006 +0100 +++ b/hgkw/keyword.py Thu Dec 28 18:14:59 2006 +0100 @@ -86,19 +86,18 @@ c = context.filectx(self._repo, self._path, fileid=node, filelog=self) - f = c.path() - if f.startswith('.hg'): + if self._path.startswith('.hg'): return data for pat, opt in self._repo.ui.configitems('keyword'): if opt == 'expand': mf = util.matcher(self._repo.root, '', [pat], [], [])[1] - if mf(f): + if mf(self._path): def kwexpander(matchobj): return kwexpand(matchobj, - self._repo, c.changectx(), f, + self._repo, c.changectx(), self._path, c.date(), c.user()) re_kw = re.compile(r'\$(%s)\$' % hgkeywords)