filteredset: drop __getitem__ implementation
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 15 Oct 2014 12:38:32 -0700
changeset 22997 d16804069db1
parent 22996 a43d929d1fa1
child 22998 93e5d24692cc
filteredset: drop __getitem__ implementation It is expensive and not part of the official smartset API.
mercurial/revset.py
--- a/mercurial/revset.py	Wed Oct 15 04:28:55 2014 -0700
+++ b/mercurial/revset.py	Wed Oct 15 12:38:32 2014 -0700
@@ -2445,11 +2445,6 @@
         l = baseset([r for r in self])
         return len(l)
 
-    def __getitem__(self, x):
-        # Basic implementation to be changed in future patches.
-        l = baseset([r for r in self])
-        return l[x]
-
     def sort(self, reverse=False):
         self._subset.sort(reverse=reverse)