# HG changeset patch # User Christian Ebert # Date 1196578831 -3600 # Node ID 2a20fa26704198daa529ec38f844a8a5473e95e8 # Parent 32061d23db1457bc7e7216db38eec028fefd3310 Set kwtemplater.path at kwfilelog initialization diff -r 32061d23db14 -r 2a20fa267041 hgkw/keyword.py --- a/hgkw/keyword.py Sat Dec 01 20:31:13 2007 +0100 +++ b/hgkw/keyword.py Sun Dec 02 08:00:31 2007 +0100 @@ -177,6 +177,7 @@ def __init__(self, opener, path, kwtemplater): super(kwfilelog, self).__init__(opener, path) self.kwtemplater = kwtemplater + self.kwtemplater.path = path def kwctread(self, node, expand): '''Reads expanding and counting keywords @@ -426,7 +427,6 @@ if f[0] == '/': f = f[1:] if kwmatch or _kwtemplater.match(f): - _kwtemplater.path = f return kwfilelog(self.sopener, f, _kwtemplater) return filelog.filelog(self.sopener, f)