Show More
@@ -63,6 +63,21 b' class basectx(object):' | |||
|
63 | 63 | for f in sorted(self._manifest): |
|
64 | 64 | yield f |
|
65 | 65 | |
|
66 | def _manifestmatches(self, match, s): | |
|
67 | """generate a new manifest filtered by the match argument | |
|
68 | ||
|
69 | This method is for internal use only and mainly exists to provide an | |
|
70 | object oriented way for other contexts to customize the manifest | |
|
71 | generation. | |
|
72 | """ | |
|
73 | mf = self.manifest().copy() | |
|
74 | if match.always(): | |
|
75 | return mf | |
|
76 | for fn in mf.keys(): | |
|
77 | if not match(fn): | |
|
78 | del mf[fn] | |
|
79 | return mf | |
|
80 | ||
|
66 | 81 | @propertycache |
|
67 | 82 | def substate(self): |
|
68 | 83 | return subrepo.state(self, self._repo.ui) |
General Comments 0
You need to be logged in to leave comments.
Login now