changeset 22870:970d78f3f47c

revset-limit: 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:48:24 -0700
parents a9fb3d598ca2
children 9b73ab9bcbfb
files mercurial/revset.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)