Mercurial > hg-stable
comparison mercurial/revset.py @ 22875:eed95fe914c5
revset-_list: remove usage of `set()`
All smartset classes have fast lookup, so this function will be removed soon.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 08 Oct 2014 02:51:16 -0700 |
parents | e15027cc4cd8 |
children | d52ca940c665 |
comparison
equal
deleted
inserted
replaced
22874:e15027cc4cd8 | 22875:eed95fe914c5 |
---|---|
1654 def _list(repo, subset, x): | 1654 def _list(repo, subset, x): |
1655 s = getstring(x, "internal error") | 1655 s = getstring(x, "internal error") |
1656 if not s: | 1656 if not s: |
1657 return baseset() | 1657 return baseset() |
1658 ls = [repo[r].rev() for r in s.split('\0')] | 1658 ls = [repo[r].rev() for r in s.split('\0')] |
1659 s = subset.set() | 1659 s = subset |
1660 return baseset([r for r in ls if r in s]) | 1660 return baseset([r for r in ls if r in s]) |
1661 | 1661 |
1662 # for internal use | 1662 # for internal use |
1663 def _intlist(repo, subset, x): | 1663 def _intlist(repo, subset, x): |
1664 s = getstring(x, "internal error") | 1664 s = getstring(x, "internal error") |