##// END OF EJS Templates
ancestors: add nullrev to set from the beginning...
Martin von Zweigbergk -
r39754:8eb2145f default
parent child Browse files
Show More
@@ -311,7 +311,7 b' class lazyancestors(object):'
311
311
312 If inclusive is True, the source revisions are also yielded. The
312 If inclusive is True, the source revisions are also yielded. The
313 reverse revision number order is still enforced."""
313 reverse revision number order is still enforced."""
314 seen = set()
314 seen = {nullrev}
315 revs = self._initrevs
315 revs = self._initrevs
316
316
317 parentrevs = self._parentrevs
317 parentrevs = self._parentrevs
@@ -319,7 +319,6 b' class lazyancestors(object):'
319 schedule = heapq.heappush
319 schedule = heapq.heappush
320 nextitem = heapq.heappop
320 nextitem = heapq.heappop
321 see = seen.add
321 see = seen.add
322 see(nullrev)
323
322
324 if self._inclusive:
323 if self._inclusive:
325 visit = [-r for r in revs]
324 visit = [-r for r in revs]
General Comments 0
You need to be logged in to leave comments. Login now