##// END OF EJS Templates
index: use `index.has_node` in `obsutil.exclusivemarkers`...
marmoute -
r43940:c8f1e841 default
parent child Browse files
Show More
@@ -249,7 +249,7 b' def exclusivemarkers(repo, nodes):'
249 unfi = repo.unfiltered()
249 unfi = repo.unfiltered()
250
250
251 # shortcut to various useful item
251 # shortcut to various useful item
252 nm = unfi.changelog.nodemap
252 has_node = unfi.changelog.index.has_node
253 precursorsmarkers = unfi.obsstore.predecessors
253 precursorsmarkers = unfi.obsstore.predecessors
254 successormarkers = unfi.obsstore.successors
254 successormarkers = unfi.obsstore.successors
255 childrenmarkers = unfi.obsstore.children
255 childrenmarkers = unfi.obsstore.children
@@ -297,7 +297,7 b' def exclusivemarkers(repo, nodes):'
297 continue
297 continue
298
298
299 # is this a locally known node ?
299 # is this a locally known node ?
300 known = prec in nm
300 known = has_node(prec)
301 # if locally-known and not in the <nodes> set the traversal
301 # if locally-known and not in the <nodes> set the traversal
302 # stop here.
302 # stop here.
303 if known and prec not in nodes:
303 if known and prec not in nodes:
General Comments 0
You need to be logged in to leave comments. Login now