Show More
@@ -594,7 +594,7 b' def between(repo, old, new, keep):' | |||||
594 | if ctxs and not keep: |
|
594 | if ctxs and not keep: | |
595 | if repo.revs('(%ld::) - (%ld + hidden())', ctxs, ctxs): |
|
595 | if repo.revs('(%ld::) - (%ld + hidden())', ctxs, ctxs): | |
596 | raise util.Abort(_('cannot edit history that would orphan nodes')) |
|
596 | raise util.Abort(_('cannot edit history that would orphan nodes')) | |
597 | root = min(ctxs) |
|
597 | root = ctxs[0] # list is already sorted by repo.set | |
598 | if not root.phase(): |
|
598 | if not root.phase(): | |
599 | raise util.Abort(_('cannot edit immutable changeset: %s') % root) |
|
599 | raise util.Abort(_('cannot edit immutable changeset: %s') % root) | |
600 | return [c.node() for c in ctxs] |
|
600 | return [c.node() for c in ctxs] |
General Comments 0
You need to be logged in to leave comments.
Login now