##// END OF EJS Templates
basectx: move __iter__ from changectx
Sean Farley -
r19552:6b76070c default
parent child Browse files
Show More
@@ -59,6 +59,10 b' class basectx(object):'
59 def __getitem__(self, key):
59 def __getitem__(self, key):
60 return self.filectx(key)
60 return self.filectx(key)
61
61
62 def __iter__(self):
63 for f in sorted(self._manifest):
64 yield f
65
62 @propertycache
66 @propertycache
63 def substate(self):
67 def substate(self):
64 return subrepo.state(self, self._repo.ui)
68 return subrepo.state(self, self._repo.ui)
@@ -203,10 +207,6 b' class changectx(basectx):'
203 p = p[:-1]
207 p = p[:-1]
204 return [changectx(self._repo, x) for x in p]
208 return [changectx(self._repo, x) for x in p]
205
209
206 def __iter__(self):
207 for f in sorted(self._manifest):
208 yield f
209
210 def changeset(self):
210 def changeset(self):
211 return self._changeset
211 return self._changeset
212 def manifest(self):
212 def manifest(self):
General Comments 0
You need to be logged in to leave comments. Login now