hgkw/keyword.py
branchkwmap-templates
changeset 119 6b4cba263852
parent 118 d9cea05cb74c
child 120 4a8a861da58c
--- 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):