# HG changeset patch # User Pierre-Yves David # Date 1413401927 25200 # Node ID 93e5d24692ccb4f5458f49916e7a00da2f4a58f5 # Parent d16804069db1a0a4e0c3f0c9d427ac695ade34a6 _spanset: drop __getitem__ implementation It is expensive and not part of the official smartset API. diff -r d16804069db1 -r 93e5d24692cc mercurial/revset.py --- a/mercurial/revset.py Wed Oct 15 12:38:32 2014 -0700 +++ b/mercurial/revset.py Wed Oct 15 12:38:47 2014 -0700 @@ -2907,11 +2907,6 @@ count += 1 return abs(self._end - self._start) - count - def __getitem__(self, x): - # Basic implementation to be changed in future patches. - l = baseset([r for r in self]) - return l[x] - def isascending(self): return self._start <= self._end