# HG changeset patch # User Pierre-Yves David # Date 1573219193 -3600 # Node ID c8f1e8412db4c8739578eacc426c719581502a3b # Parent 44f54b8f9f105f9901c317ff058aa729f41f32b8 index: use `index.has_node` in `obsutil.exclusivemarkers` Differential Revision: https://phab.mercurial-scm.org/D7333 diff -r 44f54b8f9f10 -r c8f1e8412db4 mercurial/obsutil.py --- a/mercurial/obsutil.py Fri Nov 08 14:17:03 2019 +0100 +++ b/mercurial/obsutil.py Fri Nov 08 14:19:53 2019 +0100 @@ -249,7 +249,7 @@ unfi = repo.unfiltered() # shortcut to various useful item - nm = unfi.changelog.nodemap + has_node = unfi.changelog.index.has_node precursorsmarkers = unfi.obsstore.predecessors successormarkers = unfi.obsstore.successors childrenmarkers = unfi.obsstore.children @@ -297,7 +297,7 @@ continue # is this a locally known node ? - known = prec in nm + known = has_node(prec) # if locally-known and not in the set the traversal # stop here. if known and prec not in nodes: