equal
deleted
inserted
replaced
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): |
56 def __contains__(self, key): |
57 return key in self._manifest |
57 return key in self._manifest |
|
58 |
|
59 def __getitem__(self, key): |
|
60 return self.filectx(key) |
58 |
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) |
62 |
65 |
197 def _parents(self): |
200 def _parents(self): |
198 p = self._repo.changelog.parentrevs(self._rev) |
201 p = self._repo.changelog.parentrevs(self._rev) |
199 if p[1] == nullrev: |
202 if p[1] == nullrev: |
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 |
|
203 def __getitem__(self, key): |
|
204 return self.filectx(key) |
|
205 |
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 |
209 |
209 |