##// END OF EJS Templates
keyword: fix some doc strings; update copyright
Christian Ebert -
r5831:4a40b706 default
parent child Browse files
Show More
@@ -1,6 +1,6 b''
1 # keyword.py - $Keyword$ expansion for Mercurial
1 # keyword.py - $Keyword$ expansion for Mercurial
2 #
2 #
3 # Copyright 2007 Christian Ebert <blacktrash@gmx.net>
3 # Copyright 2007, 2008 Christian Ebert <blacktrash@gmx.net>
4 #
4 #
5 # This software may be used and distributed according to the terms
5 # This software may be used and distributed according to the terms
6 # of the GNU General Public License, incorporated herein by reference.
6 # of the GNU General Public License, incorporated herein by reference.
@@ -150,9 +150,8 b' class kwtemplater(object):'
150
150
151 def process(self, node, data, expand):
151 def process(self, node, data, expand):
152 '''Returns a tuple: data, count.
152 '''Returns a tuple: data, count.
153 Count is number of keywords/keyword substitutions, indicates
153 Count is number of keywords/keyword substitutions,
154 to caller whether to act on file containing data.
154 telling caller whether to act on file containing data.'''
155 Keywords in data are expanded, if templater was initialized.'''
156 if util.binary(data):
155 if util.binary(data):
157 return data, None
156 return data, None
158 if expand:
157 if expand:
@@ -175,8 +174,7 b' class kwfilelog(filelog.filelog):'
175 _kwtemplater.path = path
174 _kwtemplater.path = path
176
175
177 def kwctread(self, node, expand):
176 def kwctread(self, node, expand):
178 '''Reads expanding and counting keywords
177 '''Reads expanding and counting keywords, called from _overwrite.'''
179 (only called from kwtemplater.overwrite).'''
180 data = super(kwfilelog, self).read(node)
178 data = super(kwfilelog, self).read(node)
181 return _kwtemplater.process(node, data, expand)
179 return _kwtemplater.process(node, data, expand)
182
180
General Comments 0
You need to be logged in to leave comments. Login now