Always exclude .hgtags only
authorChristian Ebert <blacktrash@gmx.net>
Thu, 20 Sep 2007 18:13:53 +0100
changeset 245 b0316be232da
parent 244 e449107a0501
child 246 d232d7082991
Always exclude .hgtags only .hgtags is the only tracked file that is written to just by issuing an hg command. This ensures that even a very unlikely tag like "$Id$" is processed properly.
hgkw/keyword.py
--- a/hgkw/keyword.py	Thu Sep 20 19:26:20 2007 +0100
+++ b/hgkw/keyword.py	Thu Sep 20 18:13:53 2007 +0100
@@ -299,7 +299,7 @@
     '''Collects include/exclude filename patterns for expansion
     candidates of current configuration. Returns filename matching
     function if include patterns exist, None otherwise.'''
-    inc, exc = [], ['.hg*']
+    inc, exc = [], ['.hgtags']
     for pat, opt in ui.configitems('keyword'):
         if opt != 'ignore':
             inc.append(pat)