Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/phases.py (4 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
6a6e8f91be1e | 81bc739102a4 | Pierre-Yves David | Nov 8 2019, 8:17 AM |
Status | Author | Revision | |
---|---|---|---|
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute | ||
Closed | marmoute |
return False | return False | ||||
def filterunknown(self, repo): | def filterunknown(self, repo): | ||||
"""remove unknown nodes from the phase boundary | """remove unknown nodes from the phase boundary | ||||
Nothing is lost as unknown nodes only hold data for their descendants. | Nothing is lost as unknown nodes only hold data for their descendants. | ||||
""" | """ | ||||
filtered = False | filtered = False | ||||
nodemap = repo.changelog.nodemap # to filter unknown nodes | has_node = repo.changelog.index.has_node # to filter unknown nodes | ||||
for phase, nodes in enumerate(self.phaseroots): | for phase, nodes in enumerate(self.phaseroots): | ||||
missing = sorted(node for node in nodes if node not in nodemap) | missing = sorted(node for node in nodes if not has_node(node)) | ||||
if missing: | if missing: | ||||
for mnode in missing: | for mnode in missing: | ||||
repo.ui.debug( | repo.ui.debug( | ||||
b'removing unknown node %s from %i-phase boundary\n' | b'removing unknown node %s from %i-phase boundary\n' | ||||
% (short(mnode), phase) | % (short(mnode), phase) | ||||
) | ) | ||||
nodes.symmetric_difference_update(missing) | nodes.symmetric_difference_update(missing) | ||||
filtered = True | filtered = True |