Details
Details
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
( )
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/phases.py (4 lines) |
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 |