# HG changeset patch # User Pierre-Yves David # Date 1412318012 18000 # Node ID 510432d666381cb6982b410b3ebf0f5596b741cb # Parent 11a543b5de6f4a3884e5227ab26ec328e1e7d500 addset: use base implementation for __add__ diff -r 11a543b5de6f -r 510432d66638 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