--- a/hgkw/keyword.py Thu Nov 08 12:59:43 2007 +0100
+++ b/hgkw/keyword.py Sat Nov 10 14:33:15 2007 +0100
@@ -239,7 +239,8 @@
def process(self, node, data):
'''Returns a tuple: data, count.
- Count is number of keywords/keyword substitutions.
+ Count is number of keywords/keyword substitutions, indicates
+ to caller whether to act on file containing data.
Keywords in data are expanded, if templater was initialized.'''
if util.binary(data):
return data, None
@@ -304,6 +305,8 @@
return revlog.revlog.cmp(self, node, text)
def _status(ui, repo, *pats, **opts):
+ '''Bails out if [keyword] configuration is not active.
+ Returns status of working directory.'''
if hasattr(ui, 'kwfmatcher'):
files, match, anypats = cmdutil.matchpats(repo, pats, opts)
return repo.status(files=files, match=match, list_clean=True)