mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
spanset: use base implementation for __add__
This commit is contained in:
parent
215016c505
commit
a14781af28
@ -2919,14 +2919,6 @@ class _spanset(_orderedsetmixin, abstractsmartset):
|
||||
return True
|
||||
return False
|
||||
|
||||
def __add__(self, x):
|
||||
kwargs = {}
|
||||
if self.isascending() and x.isascending():
|
||||
kwargs['ascending'] = True
|
||||
if self.isdescending() and x.isdescending():
|
||||
kwargs['ascending'] = False
|
||||
return _addset(self, x, **kwargs)
|
||||
|
||||
def __len__(self):
|
||||
if not self._hiddenrevs:
|
||||
return abs(self._end - self._start)
|
||||
|
Loading…
Reference in New Issue
Block a user