mercurial/ancestor.py
changeset 39477 8eb2145ff0fb
parent 39476 7eadc9407867
child 39481 b6a0e06b0f7d
--- a/mercurial/ancestor.py	Sat Sep 08 10:59:24 2018 +0900
+++ b/mercurial/ancestor.py	Fri Sep 07 14:48:38 2018 -0700
@@ -311,7 +311,7 @@
 
         If inclusive is True, the source revisions are also yielded. The
         reverse revision number order is still enforced."""
-        seen = set()
+        seen = {nullrev}
         revs = self._initrevs
 
         parentrevs = self._parentrevs
@@ -319,7 +319,6 @@
         schedule = heapq.heappush
         nextitem = heapq.heappop
         see = seen.add
-        see(nullrev)
 
         if self._inclusive:
             visit = [-r for r in revs]