revset-limit: remove usage of `set()`
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 08 Oct 2014 02:48:24 -0700
changeset 22870 970d78f3f47c
parent 22869 a9fb3d598ca2
child 22871 9b73ab9bcbfb
revset-limit: 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:47:46 2014 -0700
+++ b/mercurial/revset.py	Wed Oct 08 02:48:24 2014 -0700
@@ -1015,7 +1015,7 @@
     except (TypeError, ValueError):
         # i18n: "limit" is a keyword
         raise error.ParseError(_("limit expects a number"))
-    ss = subset.set()
+    ss = subset
     os = getset(repo, spanset(repo), l[0])
     result = []
     it = iter(os)