##// END OF EJS Templates
revset: added basic operations to spanset...
Lucas Moscovicz -
r20483:ed573583 default
parent child Browse files
Show More
@@ -2149,5 +2149,15 b' class spanset(object):'
2149 return (x <= self._start and x > self._end) or (x >= self._start and x<
2149 return (x <= self._start and x > self._end) or (x >= self._start and x<
2150 self._end)
2150 self._end)
2151
2151
2152 def __and__(self, x):
2153 return lazyset(self, lambda r: r in x)
2154
2155 def __sub__(self, x):
2156 return lazyset(self, lambda r: r not in x)
2157
2158 def __add__(self, x):
2159 l = baseset(self)
2160 return l + baseset(x)
2161
2152 # tell hggettext to extract docstrings from these functions:
2162 # tell hggettext to extract docstrings from these functions:
2153 i18nfunctions = symbols.values()
2163 i18nfunctions = symbols.values()
General Comments 0
You need to be logged in to leave comments. Login now