##// END OF EJS Templates
ancestor: return early from _lazyancestorsiter() when reached to stoprev...
Yuya Nishihara -
r39570:fd9029d3 default
parent child Browse files
Show More
@@ -281,7 +281,8 b' def _lazyancestorsiter(parentrevs, initr'
281
281
282 while visit:
282 while visit:
283 current = -nextitem(visit)
283 current = -nextitem(visit)
284 if current >= stoprev:
284 if current < stoprev:
285 break
285 yield current
286 yield current
286 for parent in parentrevs(current):
287 for parent in parentrevs(current):
287 if parent not in seen:
288 if parent not in seen:
General Comments 0
You need to be logged in to leave comments. Login now