mercurial/revset.py
changeset 20525 aa73a6327df4
parent 20521 1850a7f5fb66
child 20526 9ad6dae67845
--- a/mercurial/revset.py	Mon Feb 17 14:49:56 2014 -0600
+++ b/mercurial/revset.py	Tue Feb 18 11:38:03 2014 -0800
@@ -2166,10 +2166,13 @@
     """Duck type for baseset class which represents a range of revisions and
     can work lazily and without having all the range in memory
     """
-    def __init__(self, start, end, hiddenrevs=set()):
+    def __init__(self, repo, start=0, end=None):
         self._start = start
-        self._end = end
-        self._hiddenrevs = hiddenrevs
+        if end is not None:
+            self._end = end
+        else:
+            self._end = len(repo)
+        self._hiddenrevs = repo.changelog.filteredrevs
 
     def _contained(self, rev):
         return (rev <= self._start and rev > self._end) or (rev >= self._start