Mercurial > hg
changeset 22997:d16804069db1
filteredset: drop __getitem__ implementation
It is expensive and not part of the official smartset API.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Wed, 15 Oct 2014 12:38:32 -0700 |
parents | a43d929d1fa1 |
children | 93e5d24692cc |
files | mercurial/revset.py |
diffstat | 1 files changed, 0 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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)