##// END OF EJS Templates
histedit: stabilise the order nodes that are stripped...
Pierre-Yves David -
r22873:9fe8e1e8 default
parent child Browse files
Show More
@@ -925,7 +925,7 b' def cleanupnode(ui, repo, name, nodes):'
925 # Find all node that need to be stripped
925 # Find all node that need to be stripped
926 # (we hg %lr instead of %ln to silently ignore unknown item
926 # (we hg %lr instead of %ln to silently ignore unknown item
927 nm = repo.changelog.nodemap
927 nm = repo.changelog.nodemap
928 nodes = [n for n in nodes if n in nm]
928 nodes = sorted(n for n in nodes if n in nm)
929 roots = [c.node() for c in repo.set("roots(%ln)", nodes)]
929 roots = [c.node() for c in repo.set("roots(%ln)", nodes)]
930 for c in roots:
930 for c in roots:
931 # We should process node in reverse order to strip tip most first.
931 # We should process node in reverse order to strip tip most first.
General Comments 0
You need to be logged in to leave comments. Login now