equal
deleted
inserted
replaced
123 pycompat, |
123 pycompat, |
124 smartset, |
124 smartset, |
125 txnutil, |
125 txnutil, |
126 util, |
126 util, |
127 ) |
127 ) |
|
128 from .interfaces import repository |
128 |
129 |
129 _fphasesentry = struct.Struct(b'>i20s') |
130 _fphasesentry = struct.Struct(b'>i20s') |
130 |
131 |
131 # record phase index |
132 # record phase index |
132 public, draft, secret = range(3) |
133 public, draft, secret = range(3) |
152 localhiddenphases = (internal, archived) |
153 localhiddenphases = (internal, archived) |
153 |
154 |
154 |
155 |
155 def supportinternal(repo): |
156 def supportinternal(repo): |
156 """True if the internal phase can be used on a repository""" |
157 """True if the internal phase can be used on a repository""" |
157 return b'internal-phase' in repo.requirements |
158 return repository.INTERNAL_PHASE_REQUIREMENT in repo.requirements |
158 |
159 |
159 |
160 |
160 def _readroots(repo, phasedefaults=None): |
161 def _readroots(repo, phasedefaults=None): |
161 """Read phase roots from disk |
162 """Read phase roots from disk |
162 |
163 |