spanset: use base implementation for __and__
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 03 Oct 2014 00:30:58 -0500
changeset 22736 3439b66f506e
parent 22735 38f0ab661b0f
child 22737 e03ece039b3a
spanset: use base implementation for __and__
mercurial/revset.py
--- a/mercurial/revset.py	Fri Oct 03 00:39:57 2014 -0500
+++ b/mercurial/revset.py	Fri Oct 03 00:30:58 2014 -0500
@@ -2919,10 +2919,6 @@
             return True
         return False
 
-    def __and__(self, x):
-        return orderedlazyset(self, x.__contains__,
-                              ascending=self.isascending())
-
     def __sub__(self, x):
         filterfunc = x.__contains__
         return orderedlazyset(self, lambda r: not filterfunc(r),