mercurial/revset.py
changeset 22760 13e179dca666
parent 22759 6a8c55d73c66
child 22761 d3068f7056cd
equal deleted inserted replaced
22759:6a8c55d73c66 22760:13e179dca666
    44                 yield current
    44                 yield current
    45                 for parent in cl.parentrevs(current)[:cut]:
    45                 for parent in cl.parentrevs(current)[:cut]:
    46                     if parent != node.nullrev:
    46                     if parent != node.nullrev:
    47                         heapq.heappush(h, -parent)
    47                         heapq.heappush(h, -parent)
    48 
    48 
    49     return _descgeneratorset(iterate())
    49     return _generatorset(iterate(), iterasc=False)
    50 
    50 
    51 def _revdescendants(repo, revs, followfirst):
    51 def _revdescendants(repo, revs, followfirst):
    52     """Like revlog.descendants() but supports followfirst."""
    52     """Like revlog.descendants() but supports followfirst."""
    53     cut = followfirst and 1 or None
    53     cut = followfirst and 1 or None
    54 
    54