changeset 22745:021660aeb75e

addset: use base implementation for __and__
author Pierre-Yves David <pierre-yves.david@fb.com>
date Fri, 03 Oct 2014 01:31:46 -0500
parents 3ed3ca4dfd31
children 11a543b5de6f
files mercurial/revset.py
diffstat 1 files changed, 0 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revset.py	Thu Oct 02 19:42:06 2014 -0500
+++ b/mercurial/revset.py	Fri Oct 03 01:31:46 2014 -0500
@@ -2607,12 +2607,6 @@
             if self._ascending:
                 self.reverse()
 
-    def __and__(self, other):
-        filterfunc = other.__contains__
-        if self._ascending is not None:
-            return orderedlazyset(self, filterfunc, ascending=self._ascending)
-        return filteredset(self, filterfunc)
-
     def __sub__(self, other):
         filterfunc = lambda r: r not in other
         if self._ascending is not None: