equal
deleted
inserted
replaced
72 generation. |
72 generation. |
73 """ |
73 """ |
74 if match.always(): |
74 if match.always(): |
75 return self.manifest().copy() |
75 return self.manifest().copy() |
76 |
76 |
77 if match.matchfn == match.exact: |
77 files = match.files() |
78 return self.manifest().intersectfiles(match.files()) |
78 if (match.matchfn == match.exact or |
|
79 (not match.anypats() and util.all(fn in self for fn in files))): |
|
80 return self.manifest().intersectfiles(files) |
79 |
81 |
80 mf = self.manifest().copy() |
82 mf = self.manifest().copy() |
81 for fn in mf.keys(): |
83 for fn in mf.keys(): |
82 if not match(fn): |
84 if not match(fn): |
83 del mf[fn] |
85 del mf[fn] |