hgkw/keyword.py
changeset 245 b0316be232da
parent 244 e449107a0501
child 246 d232d7082991
equal deleted inserted replaced
244:e449107a0501 245:b0316be232da
   297 
   297 
   298 def _keywordmatcher(ui, repo):
   298 def _keywordmatcher(ui, repo):
   299     '''Collects include/exclude filename patterns for expansion
   299     '''Collects include/exclude filename patterns for expansion
   300     candidates of current configuration. Returns filename matching
   300     candidates of current configuration. Returns filename matching
   301     function if include patterns exist, None otherwise.'''
   301     function if include patterns exist, None otherwise.'''
   302     inc, exc = [], ['.hg*']
   302     inc, exc = [], ['.hgtags']
   303     for pat, opt in ui.configitems('keyword'):
   303     for pat, opt in ui.configitems('keyword'):
   304         if opt != 'ignore':
   304         if opt != 'ignore':
   305             inc.append(pat)
   305             inc.append(pat)
   306         else:
   306         else:
   307             exc.append(pat)
   307             exc.append(pat)