mercurial/manifest.py
changeset 24396 9e03602cd2d8
parent 24350 7002ad149f30
child 24401 e6e023d57e94
equal deleted inserted replaced
24395:216fa1ba9993 24396:9e03602cd2d8
   162         '''generate a new manifest filtered by the match argument'''
   162         '''generate a new manifest filtered by the match argument'''
   163         if match.always():
   163         if match.always():
   164             return self.copy()
   164             return self.copy()
   165 
   165 
   166         files = match.files()
   166         files = match.files()
   167         if ((match.matchfn == match.exact and len(files) < 100) or
   167         if (len(files) < 100 and (match.matchfn == match.exact or
   168             (not match.anypats() and util.all(fn in self for fn in files))):
   168             (not match.anypats() and util.all(fn in self for fn in files)))):
   169             return self.intersectfiles(files)
   169             return self.intersectfiles(files)
   170 
   170 
   171         lm = manifestdict('')
   171         lm = manifestdict('')
   172         lm._lm = self._lm.filtercopy(match)
   172         lm._lm = self._lm.filtercopy(match)
   173         return lm
   173         return lm