Show More
@@ -3204,18 +3204,7 b' class generatorset(abstractsmartset):' | |||||
3204 | return it().next() |
|
3204 | return it().next() | |
3205 | return None |
|
3205 | return None | |
3206 |
|
3206 | |||
3207 | def spanset(repo, start=None, end=None): |
|
3207 | class spanset(abstractsmartset): | |
3208 | """factory function to dispatch between fullreposet and actual spanset |
|
|||
3209 |
|
||||
3210 | Feel free to update all spanset call sites and kill this function at some |
|
|||
3211 | point. |
|
|||
3212 | """ |
|
|||
3213 | if start is None and end is None: |
|
|||
3214 | return fullreposet(repo) |
|
|||
3215 | return _spanset(repo, start, end) |
|
|||
3216 |
|
||||
3217 |
|
||||
3218 | class _spanset(abstractsmartset): |
|
|||
3219 | """Duck type for baseset class which represents a range of revisions and |
|
3208 | """Duck type for baseset class which represents a range of revisions and | |
3220 | can work lazily and without having all the range in memory |
|
3209 | can work lazily and without having all the range in memory | |
3221 |
|
3210 | |||
@@ -3319,7 +3308,7 b' class _spanset(abstractsmartset):' | |||||
3319 | return x |
|
3308 | return x | |
3320 | return None |
|
3309 | return None | |
3321 |
|
3310 | |||
3322 |
class fullreposet( |
|
3311 | class fullreposet(spanset): | |
3323 | """a set containing all revisions in the repo |
|
3312 | """a set containing all revisions in the repo | |
3324 |
|
3313 | |||
3325 | This class exists to host special optimization. |
|
3314 | This class exists to host special optimization. |
General Comments 0
You need to be logged in to leave comments.
Login now