Mercurial > hg
changeset 22882:ecd27fee5c2b
fullreposet: drop custom sets but not smartsets detection
All custom classes use by revsets are smartsets now. We drop the special-casing.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 10 Oct 2014 13:21:05 -0700 |
parents | 057ebf7714e1 |
children | e7b8cf352614 |
files | mercurial/revset.py |
diffstat | 1 files changed, 0 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revset.py Fri Oct 10 12:30:00 2014 -0700 +++ b/mercurial/revset.py Fri Oct 10 13:21:05 2014 -0700 @@ -2987,10 +2987,6 @@ # `other` was used with "&", let's assume this is a set like # object. other = baseset(other - self._hiddenrevs) - elif not util.safehasattr(other, 'isascending'): - # "other" is generatorset not a real smart set - # we fallback to the old way (sad kitten) - return super(fullreposet, self).__and__(other) if self.isascending(): other.sort()