##// END OF EJS Templates
phases: type annotation for `_phasesets`...
marmoute -
r52304:774e4eff default
parent child Browse files
Show More
@@ -134,6 +134,7 b' from . import ('
134 )
134 )
135
135
136 Phaseroots = Dict[int, Set[int]]
136 Phaseroots = Dict[int, Set[int]]
137 PhaseSets = Dict[int, Set[int]]
137
138
138 if typing.TYPE_CHECKING:
139 if typing.TYPE_CHECKING:
139 from . import (
140 from . import (
@@ -377,7 +378,7 b' class phasecache:'
377 self._phaseroots: Phaseroots = loaded[0]
378 self._phaseroots: Phaseroots = loaded[0]
378 self.dirty: bool = loaded[1]
379 self.dirty: bool = loaded[1]
379 self._loadedrevslen = 0
380 self._loadedrevslen = 0
380 self._phasesets = None
381 self._phasesets: PhaseSets = None
381
382
382 def hasnonpublicphases(self, repo: "localrepo.localrepository") -> bool:
383 def hasnonpublicphases(self, repo: "localrepo.localrepository") -> bool:
383 """detect if there are revisions with non-public phase"""
384 """detect if there are revisions with non-public phase"""
General Comments 0
You need to be logged in to leave comments. Login now