Mercurial > public > mercurial-scm > hg
comparison mercurial/scmutil.py @ 49450:b57c95a0f5f9
phase: introduce a dedicated function to check for the archived phase
The internal-phase is "ready to use" since its introduce. However, some
question remains around the `archived` phase. So it seem safer to move them to
separated configuration and requirements. This changeset is a first of a small
series doing this.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 16 Aug 2022 18:20:42 +0200 |
parents | 2e726c934fcd |
children | 4bd12c0f531e 566f7dd563c1 |
comparison
equal
deleted
inserted
replaced
49449:cfff73cab721 | 49450:b57c95a0f5f9 |
---|---|
1189 rels.append(rel) | 1189 rels.append(rel) |
1190 if rels: | 1190 if rels: |
1191 obsolete.createmarkers( | 1191 obsolete.createmarkers( |
1192 repo, rels, operation=operation, metadata=metadata | 1192 repo, rels, operation=operation, metadata=metadata |
1193 ) | 1193 ) |
1194 elif phases.supportinternal(repo) and mayusearchived: | 1194 elif phases.supportarchived(repo) and mayusearchived: |
1195 # this assume we do not have "unstable" nodes above the cleaned ones | 1195 # this assume we do not have "unstable" nodes above the cleaned ones |
1196 allreplaced = set() | 1196 allreplaced = set() |
1197 for ns in replacements.keys(): | 1197 for ns in replacements.keys(): |
1198 allreplaced.update(ns) | 1198 allreplaced.update(ns) |
1199 if backup: | 1199 if backup: |