# HG changeset patch # User Christian Ebert # Date 1169565182 0 # Node ID 6b4cba26385220b1c62ee7f28b20d51a5642925e # Parent d9cea05cb74c33d39246e7d77d5912dc7bc1c768 Put .hg* files in exclusion list at declaration diff -r d9cea05cb74c -r 6b4cba263852 hgkw/keyword.py --- 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):