equal
deleted
inserted
replaced
69 |
69 |
70 This method is for internal use only and mainly exists to provide an |
70 This method is for internal use only and mainly exists to provide an |
71 object oriented way for other contexts to customize the manifest |
71 object oriented way for other contexts to customize the manifest |
72 generation. |
72 generation. |
73 """ |
73 """ |
|
74 if match.always(): |
|
75 return self.manifest().copy() |
|
76 |
|
77 if match.matchfn == match.exact: |
|
78 return self.manifest().intersectfiles(match.files()) |
|
79 |
74 mf = self.manifest().copy() |
80 mf = self.manifest().copy() |
75 if match.always(): |
|
76 return mf |
|
77 for fn in mf.keys(): |
81 for fn in mf.keys(): |
78 if not match(fn): |
82 if not match(fn): |
79 del mf[fn] |
83 del mf[fn] |
80 return mf |
84 return mf |
81 |
85 |