##// END OF EJS Templates
revset: changed spanset to take a repo argument...
Lucas Moscovicz -
r20525:aa73a632 default
parent child Browse files
Show More
@@ -2166,10 +2166,13 b' class spanset(object):'
2166 """Duck type for baseset class which represents a range of revisions and
2166 """Duck type for baseset class which represents a range of revisions and
2167 can work lazily and without having all the range in memory
2167 can work lazily and without having all the range in memory
2168 """
2168 """
2169 def __init__(self, start, end, hiddenrevs=set()):
2169 def __init__(self, repo, start=0, end=None):
2170 self._start = start
2170 self._start = start
2171 self._end = end
2171 if end is not None:
2172 self._hiddenrevs = hiddenrevs
2172 self._end = end
2173 else:
2174 self._end = len(repo)
2175 self._hiddenrevs = repo.changelog.filteredrevs
2173
2176
2174 def _contained(self, rev):
2177 def _contained(self, rev):
2175 return (rev <= self._start and rev > self._end) or (rev >= self._start
2178 return (rev <= self._start and rev > self._end) or (rev >= self._start
General Comments 0
You need to be logged in to leave comments. Login now