mercurial/match.py
changeset 27343 c59647c6694d
parent 27327 d500341e4f55
child 27595 9e2d01707e71
equal deleted inserted replaced
27342:673ba59669b5 27343:c59647c6694d
   225     def visitdir(self, dir):
   225     def visitdir(self, dir):
   226         '''Decides whether a directory should be visited based on whether it
   226         '''Decides whether a directory should be visited based on whether it
   227         has potential matches in it or one of its subdirectories. This is
   227         has potential matches in it or one of its subdirectories. This is
   228         based on the match's primary, included, and excluded patterns.
   228         based on the match's primary, included, and excluded patterns.
   229 
   229 
       
   230         Returns the string 'all' if the given directory and all subdirectories
       
   231         should be visited. Otherwise returns True or False indicating whether
       
   232         the given directory should be visited.
       
   233 
   230         This function's behavior is undefined if it has returned False for
   234         This function's behavior is undefined if it has returned False for
   231         one of the dir's parent directories.
   235         one of the dir's parent directories.
   232         '''
   236         '''
       
   237         if self.prefix() and dir in self._fileroots:
       
   238             return 'all'
   233         if dir in self._excluderoots:
   239         if dir in self._excluderoots:
   234             return False
   240             return False
   235         if (self._includeroots and
   241         if (self._includeroots and
   236             '.' not in self._includeroots and
   242             '.' not in self._includeroots and
   237             dir not in self._includeroots and
   243             dir not in self._includeroots and