revset: drop factory that promotes spanset to fullreposet
authorYuya Nishihara <yuya@tcha.org>
Thu, 08 Jan 2015 23:43:15 +0900
changeset 24116 8b90a60181d1
parent 24115 ff24af40728b
child 24117 9cfd7c4f22f5
revset: drop factory that promotes spanset to fullreposet All callers use fullreposet where appropriate. Backed out changeset fbae659543cf
mercurial/revset.py
--- a/mercurial/revset.py	Thu Jan 08 23:46:54 2015 +0900
+++ b/mercurial/revset.py	Thu Jan 08 23:43:15 2015 +0900
@@ -3204,18 +3204,7 @@
             return it().next()
         return None
 
-def spanset(repo, start=None, end=None):
-    """factory function to dispatch between fullreposet and actual spanset
-
-    Feel free to update all spanset call sites and kill this function at some
-    point.
-    """
-    if start is None and end is None:
-        return fullreposet(repo)
-    return _spanset(repo, start, end)
-
-
-class _spanset(abstractsmartset):
+class spanset(abstractsmartset):
     """Duck type for baseset class which represents a range of revisions and
     can work lazily and without having all the range in memory
 
@@ -3319,7 +3308,7 @@
             return x
         return None
 
-class fullreposet(_spanset):
+class fullreposet(spanset):
     """a set containing all revisions in the repo
 
     This class exists to host special optimization.