Submitter | phabricator |
---|---|
Date | Nov. 9, 2019, 8:40 a.m. |
Message ID | <c159ccd406aee55f30c3bb7ae197b8d3@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/43053/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/phases.py b/mercurial/phases.py --- a/mercurial/phases.py +++ b/mercurial/phases.py @@ -512,9 +512,9 @@ Nothing is lost as unknown nodes only hold data for their descendants. """ 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): - 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: for mnode in missing: repo.ui.debug(