Show More
@@ -56,6 +56,9 b' class basectx(object):' | |||||
56 | def __contains__(self, key): |
|
56 | def __contains__(self, key): | |
57 | return key in self._manifest |
|
57 | return key in self._manifest | |
58 |
|
58 | |||
|
59 | def __getitem__(self, key): | |||
|
60 | return self.filectx(key) | |||
|
61 | ||||
59 | @propertycache |
|
62 | @propertycache | |
60 | def substate(self): |
|
63 | def substate(self): | |
61 | return subrepo.state(self, self._repo.ui) |
|
64 | return subrepo.state(self, self._repo.ui) | |
@@ -200,9 +203,6 b' class changectx(basectx):' | |||||
200 | p = p[:-1] |
|
203 | p = p[:-1] | |
201 | return [changectx(self._repo, x) for x in p] |
|
204 | return [changectx(self._repo, x) for x in p] | |
202 |
|
205 | |||
203 | def __getitem__(self, key): |
|
|||
204 | return self.filectx(key) |
|
|||
205 |
|
||||
206 | def __iter__(self): |
|
206 | def __iter__(self): | |
207 | for f in sorted(self._manifest): |
|
207 | for f in sorted(self._manifest): | |
208 | yield f |
|
208 | yield f |
General Comments 0
You need to be logged in to leave comments.
Login now