fullreposet: drop custom sets but not smartsets detection
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 10 Oct 2014 13:21:05 -0700
changeset 22882 ecd27fee5c2b
parent 22881 057ebf7714e1
child 22883 e7b8cf352614
fullreposet: drop custom sets but not smartsets detection All custom classes use by revsets are smartsets now. We drop the special-casing.
mercurial/revset.py
--- 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()