##// END OF EJS Templates
ancestor: remove extra generator from lazyancestors.__iter__()
Yuya Nishihara -
r39617:68ce242c default
parent child Browse files
Show More
@@ -348,9 +348,8 b' class lazyancestors(object):'
348
348
349 If inclusive is True, the source revisions are also yielded. The
349 If inclusive is True, the source revisions are also yielded. The
350 reverse revision number order is still enforced."""
350 reverse revision number order is still enforced."""
351 for rev in _lazyancestorsiter(self._parentrevs, self._initrevs,
351 return _lazyancestorsiter(self._parentrevs, self._initrevs,
352 self._stoprev, self._inclusive):
352 self._stoprev, self._inclusive)
353 yield rev
354
353
355 def __contains__(self, target):
354 def __contains__(self, target):
356 """Test whether target is an ancestor of self._initrevs."""
355 """Test whether target is an ancestor of self._initrevs."""
General Comments 0
You need to be logged in to leave comments. Login now