##// END OF EJS Templates
revset: changed _iterator() in addset to use the generated list when available...
Lucas Moscovicz -
r20721:d642f176 default
parent child Browse files
Show More
@@ -2353,8 +2353,9 b' class _addset(object):'
2353 return self._iter
2353 return self._iter
2354
2354
2355 def __iter__(self):
2355 def __iter__(self):
2356 for r in self._iterator():
2356 if self._genlist:
2357 yield r
2357 return iter(self._genlist)
2358 return iter(self._iterator())
2358
2359
2359 def __contains__(self, x):
2360 def __contains__(self, x):
2360 return x in self._r1 or x in self._r2
2361 return x in self._r1 or x in self._r2
General Comments 0
You need to be logged in to leave comments. Login now