--- a/hgkw/keyword.py Sun Jan 21 05:04:17 2007 +0100
+++ b/hgkw/keyword.py Tue Jan 23 15:13:02 2007 +0000
@@ -105,7 +105,7 @@
def kwfmatches(ui, repo, files):
'''Selects and weeds out candidates for keyword substitution
by patterns configured in [keyword] section in hgrc.'''
- inc, exc = [], []
+ inc, exc = [], ['.hg*']
for pat, opt in ui.configitems('keyword'):
if opt != 'ignore':
inc.append(pat)
@@ -113,7 +113,7 @@
exc.append(pat)
if not inc:
return []
- kwfmatcher = util.matcher(repo.root, inc=inc, exc=['.hg*']+exc)[1]
+ kwfmatcher = util.matcher(repo.root, inc=inc, exc=exc)[1]
return [f for f in files if kwfmatcher(f)]
class kwtemplater(object):