Show More
@@ -2490,6 +2490,11 b' class spanset(object):' | |||||
2490 | return self._contained(x) and not (self._hiddenrevs and rev in |
|
2490 | return self._contained(x) and not (self._hiddenrevs and rev in | |
2491 | self._hiddenrevs) |
|
2491 | self._hiddenrevs) | |
2492 |
|
2492 | |||
|
2493 | def __nonzero__(self): | |||
|
2494 | for r in self: | |||
|
2495 | return True | |||
|
2496 | return False | |||
|
2497 | ||||
2493 | def __and__(self, x): |
|
2498 | def __and__(self, x): | |
2494 | if isinstance(x, baseset): |
|
2499 | if isinstance(x, baseset): | |
2495 | x = x.set() |
|
2500 | x = x.set() |
General Comments 0
You need to be logged in to leave comments.
Login now