equal
deleted
inserted
replaced
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 |