equal
deleted
inserted
replaced
132 txnutil, |
132 txnutil, |
133 util, |
133 util, |
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 ( |
140 localrepo, |
141 localrepo, |
141 ui as uimod, |
142 ui as uimod, |
375 # Cheap trick to allow shallow-copy without copy module |
376 # Cheap trick to allow shallow-copy without copy module |
376 loaded = _readroots(repo, phasedefaults) |
377 loaded = _readroots(repo, phasedefaults) |
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""" |
384 repo = repo.unfiltered() |
385 repo = repo.unfiltered() |
385 cl = repo.changelog |
386 cl = repo.changelog |