mercurial/manifest.py
changeset 27343 c59647c6694d
parent 27271 2a31433a59ba
child 27466 f888676a23d0
equal deleted inserted replaced
27342:673ba59669b5 27343:c59647c6694d
   738         return self._matches(match)
   738         return self._matches(match)
   739 
   739 
   740     def _matches(self, match):
   740     def _matches(self, match):
   741         '''recursively generate a new manifest filtered by the match argument.
   741         '''recursively generate a new manifest filtered by the match argument.
   742         '''
   742         '''
       
   743 
       
   744         visit = match.visitdir(self._dir[:-1] or '.')
       
   745         if visit == 'all':
       
   746             return self.copy()
   743         ret = treemanifest(self._dir)
   747         ret = treemanifest(self._dir)
   744 
   748         if not visit:
   745         if not match.visitdir(self._dir[:-1] or '.'):
       
   746             return ret
   749             return ret
   747 
   750 
   748         self._load()
   751         self._load()
   749         for fn in self._files:
   752         for fn in self._files:
   750             fullp = self._subpath(fn)
   753             fullp = self._subpath(fn)