mercurial/revset.py
changeset 22487 e40bb83d0989
parent 22483 a21d04848359
child 22494 14f6cebfcb8a
equal deleted inserted replaced
22486:f166e08ece3b 22487:e40bb83d0989
    76     """Return all paths between roots and heads, inclusive of both endpoint
    76     """Return all paths between roots and heads, inclusive of both endpoint
    77     sets."""
    77     sets."""
    78     if not roots:
    78     if not roots:
    79         return baseset([])
    79         return baseset([])
    80     parentrevs = repo.changelog.parentrevs
    80     parentrevs = repo.changelog.parentrevs
    81     visit = baseset(heads)
    81     visit = list(heads)
    82     reachable = set()
    82     reachable = set()
    83     seen = {}
    83     seen = {}
    84     minroot = min(roots)
    84     minroot = min(roots)
    85     roots = set(roots)
    85     roots = set(roots)
    86     # open-code the post-order traversal due to the tiny size of
    86     # open-code the post-order traversal due to the tiny size of