mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
generatorset: make use of the new mechanism in the subclass
Until we remove them, we use the new parameter of _generatorset to make sure the code is run.
This commit is contained in:
parent
8182bcd552
commit
f6fa8eb009
@ -2703,6 +2703,10 @@ class _ascgeneratorset(_generatorset):
|
||||
This class does not duck-type baseset and it's only supposed to be used
|
||||
internally
|
||||
"""
|
||||
|
||||
def __init__(self, gen):
|
||||
super(_ascgeneratorset, self).__init__(gen, iterasc=True)
|
||||
|
||||
def __contains__(self, x):
|
||||
if x in self._cache:
|
||||
return self._cache[x]
|
||||
@ -2726,6 +2730,10 @@ class _descgeneratorset(_generatorset):
|
||||
This class does not duck-type baseset and it's only supposed to be used
|
||||
internally
|
||||
"""
|
||||
|
||||
def __init__(self, gen):
|
||||
super(_descgeneratorset, self).__init__(gen, iterasc=False)
|
||||
|
||||
def __contains__(self, x):
|
||||
if x in self._cache:
|
||||
return self._cache[x]
|
||||
|
Loading…
Reference in New Issue
Block a user