hgkw/keyword.py
branchkwmap-templates
changeset 117 201e9affcf0f
parent 116 265714c59607
child 118 d9cea05cb74c
equal deleted inserted replaced
116:265714c59607 117:201e9affcf0f
   105         if opt != 'ignore':
   105         if opt != 'ignore':
   106             inc.append(pat)
   106             inc.append(pat)
   107         else:
   107         else:
   108             exc.append(pat)
   108             exc.append(pat)
   109     if not inc:
   109     if not inc:
   110         ui.debug(_('keyword: no filename globs for substitution\n'))
       
   111         return []
   110         return []
   112     kwfmatcher = util.matcher(repo.root, inc=inc, exc=['.hg*']+exc)[1]
   111     kwfmatcher = util.matcher(repo.root, inc=inc, exc=['.hg*']+exc)[1]
   113     return [f for f in files if kwfmatcher(f)]
   112     return [f for f in files if kwfmatcher(f)]
   114 
   113 
   115 
   114