Show More
@@ -2565,8 +2565,8 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 |
|
|
2568 | has_node = repo.changelog.index.has_node | |
2569 |
nodes = sorted(n for n in nodes if n |
|
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