##// 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 59 def __getitem__(self, key):
60 60 return self.filectx(key)
61 61
62 def __iter__(self):
63 for f in sorted(self._manifest):
64 yield f
65
62 66 @propertycache
63 67 def substate(self):
64 68 return subrepo.state(self, self._repo.ui)
@@ -203,10 +207,6 b' class changectx(basectx):'
203 207 p = p[:-1]
204 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 210 def changeset(self):
211 211 return self._changeset
212 212 def manifest(self):
General Comments 0
You need to be logged in to leave comments. Login now