Mercurial > hg
changeset 22747:510432d66638
addset: use base implementation for __add__
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 03 Oct 2014 01:33:32 -0500 |
parents | 11a543b5de6f |
children | 852191f71df1 |
files | mercurial/revset.py |
diffstat | 1 files changed, 0 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- 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