mercurial/graphmod.py
changeset 24180 d8e0c591781c
parent 23570 3f86fe9bcef0
child 25951 69751804f2f5
equal deleted inserted replaced
24179:14d647d25c70 24180:d8e0c591781c
   120         # Heap works with smallest element, we want highest so we invert
   120         # Heap works with smallest element, we want highest so we invert
   121         if currentrev not in pendingset:
   121         if currentrev not in pendingset:
   122             heappush(pendingheap, -currentrev)
   122             heappush(pendingheap, -currentrev)
   123             pendingset.add(currentrev)
   123             pendingset.add(currentrev)
   124         # iterates on pending rev until after the current rev have been
   124         # iterates on pending rev until after the current rev have been
   125         # processeed.
   125         # processed.
   126         rev = None
   126         rev = None
   127         while rev != currentrev:
   127         while rev != currentrev:
   128             rev = -heappop(pendingheap)
   128             rev = -heappop(pendingheap)
   129             pendingset.remove(rev)
   129             pendingset.remove(rev)
   130 
   130