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