addset: use base implementation for __sub__
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 03 Oct 2014 01:32:50 -0500
changeset 22746 11a543b5de6f
parent 22745 021660aeb75e
child 22747 510432d66638
addset: use base implementation for __sub__
mercurial/revset.py
--- a/mercurial/revset.py	Fri Oct 03 01:31:46 2014 -0500
+++ b/mercurial/revset.py	Fri Oct 03 01:32:50 2014 -0500
@@ -2607,12 +2607,6 @@
             if self._ascending:
                 self.reverse()
 
-    def __sub__(self, other):
-        filterfunc = lambda r: r not in other
-        if self._ascending is not None:
-            return orderedlazyset(self, filterfunc, ascending=self._ascending)
-        return filteredset(self, filterfunc)
-
     def __add__(self, other):
         """When both collections are ascending or descending, preserve the order
         """