Show More
@@ -53,6 +53,9 b' class basectx(object):' | |||||
53 | def __ne__(self, other): |
|
53 | def __ne__(self, other): | |
54 | return not (self == other) |
|
54 | return not (self == other) | |
55 |
|
55 | |||
|
56 | def __contains__(self, key): | |||
|
57 | return key in self._manifest | |||
|
58 | ||||
56 | @propertycache |
|
59 | @propertycache | |
57 | def substate(self): |
|
60 | def substate(self): | |
58 | return subrepo.state(self, self._repo.ui) |
|
61 | return subrepo.state(self, self._repo.ui) | |
@@ -197,9 +200,6 b' class changectx(basectx):' | |||||
197 | p = p[:-1] |
|
200 | p = p[:-1] | |
198 | return [changectx(self._repo, x) for x in p] |
|
201 | return [changectx(self._repo, x) for x in p] | |
199 |
|
202 | |||
200 | def __contains__(self, key): |
|
|||
201 | return key in self._manifest |
|
|||
202 |
|
||||
203 | def __getitem__(self, key): |
|
203 | def __getitem__(self, key): | |
204 | return self.filectx(key) |
|
204 | return self.filectx(key) | |
205 |
|
205 |
General Comments 0
You need to be logged in to leave comments.
Login now