mercurial/match.py
changeset 32291 bd872f64a8ba
parent 32176 cf042543afa2
child 32312 0d6b3572ad92
equal deleted inserted replaced
32290:2959c3e986e0 32291:bd872f64a8ba
   234         else: optimal roots'''
   234         else: optimal roots'''
   235         return self._files
   235         return self._files
   236 
   236 
   237     @propertycache
   237     @propertycache
   238     def _dirs(self):
   238     def _dirs(self):
   239         return set(util.dirs(self._fileroots)) | set(['.'])
   239         return set(util.dirs(self._fileroots)) | {'.'}
   240 
   240 
   241     def visitdir(self, dir):
   241     def visitdir(self, dir):
   242         '''Decides whether a directory should be visited based on whether it
   242         '''Decides whether a directory should be visited based on whether it
   243         has potential matches in it or one of its subdirectories. This is
   243         has potential matches in it or one of its subdirectories. This is
   244         based on the match's primary, included, and excluded patterns.
   244         based on the match's primary, included, and excluded patterns.