# HG changeset patch # User Pierre-Yves David # Date 2014-10-08 09:45:53 # Node ID 6e739356f9bf26cad5125dbd10449a9124781d47 # Parent 09951bedbf35031bc8a57fed59c8b706c5e9890a revset-rangeset: remove usage of `set()` All smartset classes have fast lookup, so this function will be removed soon. diff --git a/mercurial/revset.py b/mercurial/revset.py --- a/mercurial/revset.py +++ b/mercurial/revset.py @@ -282,8 +282,7 @@ def rangeset(repo, subset, x, y): def dagrange(repo, subset, x, y): r = spanset(repo) xs = _revsbetween(repo, getset(repo, r, x), getset(repo, r, y)) - s = subset.set() - return xs.filter(s.__contains__) + return xs & subset def andset(repo, subset, x, y): return getset(repo, getset(repo, subset, x), y)