addset: use base implementation for __add__
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 03 Oct 2014 01:33:32 -0500
changeset 22747 510432d66638
parent 22746 11a543b5de6f
child 22748 852191f71df1
addset: use base implementation for __add__
mercurial/revset.py
--- a/mercurial/revset.py	Fri Oct 03 01:32:50 2014 -0500
+++ b/mercurial/revset.py	Fri Oct 03 01:33:32 2014 -0500
@@ -2607,17 +2607,6 @@
             if self._ascending:
                 self.reverse()
 
-    def __add__(self, other):
-        """When both collections are ascending or descending, preserve the order
-        """
-        kwargs = {}
-        if self._ascending is not None:
-            if self.isascending() and other.isascending():
-                kwargs['ascending'] = True
-            if self.isdescending() and other.isdescending():
-                kwargs['ascending'] = False
-        return _addset(self, other, **kwargs)
-
     def _iterator(self):
         """Iterate over both collections without repeating elements