revset-rangeset: remove usage of `set()`
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 08 Oct 2014 02:45:53 -0700
changeset 22866 6e739356f9bf
parent 22865 09951bedbf35
child 22867 5ee9b78ce805
revset-rangeset: remove usage of `set()` All smartset classes have fast lookup, so this function will be removed soon.
mercurial/revset.py
--- a/mercurial/revset.py	Wed Oct 08 02:45:43 2014 -0700
+++ b/mercurial/revset.py	Wed Oct 08 02:45:53 2014 -0700
@@ -282,8 +282,7 @@
 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)