##// 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,12 +281,13 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 yield current
285 break
286 for parent in parentrevs(current):
286 yield current
287 if parent not in seen:
287 for parent in parentrevs(current):
288 schedule(visit, -parent)
288 if parent not in seen:
289 see(parent)
289 schedule(visit, -parent)
290 see(parent)
290
291
291 class lazyancestors(object):
292 class lazyancestors(object):
292 def __init__(self, pfunc, revs, stoprev=0, inclusive=False):
293 def __init__(self, pfunc, revs, stoprev=0, inclusive=False):
General Comments 0
You need to be logged in to leave comments. Login now