##// END OF EJS Templates
index: use `index.has_node` in `histedit.cleanupnode`...
marmoute -
r43854:e8cd502f default draft
parent child Browse files
Show More
@@ -2565,8 +2565,8 b' def cleanupnode(ui, repo, nodes, nobacku'
2565 repo = repo.unfiltered()
2565 repo = repo.unfiltered()
2566 # Find all nodes that need to be stripped
2566 # Find all nodes that need to be stripped
2567 # (we use %lr instead of %ln to silently ignore unknown items)
2567 # (we use %lr instead of %ln to silently ignore unknown items)
2568 nm = repo.changelog.nodemap
2568 has_node = repo.changelog.index.has_node
2569 nodes = sorted(n for n in nodes if n in nm)
2569 nodes = sorted(n for n in nodes if has_node(n))
2570 roots = [c.node() for c in repo.set(b"roots(%ln)", nodes)]
2570 roots = [c.node() for c in repo.set(b"roots(%ln)", nodes)]
2571 if roots:
2571 if roots:
2572 backup = not nobackup
2572 backup = not nobackup
General Comments 0
You need to be logged in to leave comments. Login now