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