Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/revset.py @ 22487:e40bb83d0989
revset: stop using a baseset instead of a plain list in _revsbetween
The function internal code needs a list. Lets use a list.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Tue, 16 Sep 2014 22:55:49 -0700 |
parents | a21d04848359 |
children | 14f6cebfcb8a |
comparison
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 |