Show More
@@ -609,9 +609,9 b' def abort(repo, originalwd, target, stat' | |||
|
609 | 609 | dstates = [s for s in state.values() if s != nullrev] |
|
610 | 610 | immutable = [d for d in dstates if not repo[d].mutable()] |
|
611 | 611 | if immutable: |
|
612 |
r |
|
|
613 |
|
|
|
614 |
|
|
|
612 | repo.ui.warn(_("warning: can't clean up immutable changesets %s\n") | |
|
613 | % ', '.join(str(repo[r]) for r in immutable), | |
|
614 | hint=_('see hg help phases for details')) | |
|
615 | 615 | |
|
616 | 616 | descendants = set() |
|
617 | 617 | if dstates: |
@@ -622,12 +622,12 b' def abort(repo, originalwd, target, stat' | |||
|
622 | 622 | return -1 |
|
623 | 623 | else: |
|
624 | 624 | # Update away from the rebase if necessary |
|
625 | if inrebase(repo, originalwd, state): | |
|
625 | if not immutable and inrebase(repo, originalwd, state): | |
|
626 | 626 | merge.update(repo, repo[originalwd].rev(), False, True, False) |
|
627 | 627 | |
|
628 | 628 | # Strip from the first rebased revision |
|
629 | 629 | rebased = filter(lambda x: x > -1 and x != target, state.values()) |
|
630 | if rebased: | |
|
630 | if rebased and not immutable: | |
|
631 | 631 | strippoints = [c.node() for c in repo.set('roots(%ld)', rebased)] |
|
632 | 632 | # no backup of rebased cset versions needed |
|
633 | 633 | repair.strip(repo.ui, repo, strippoints) |
@@ -248,9 +248,8 b" Change phase on B and B'" | |||
|
248 | 248 | Abort the rebasing: |
|
249 | 249 | |
|
250 | 250 | $ hg rebase --abort |
|
251 |
|
|
|
252 | (see hg help phases for details) | |
|
253 | [255] | |
|
251 | warning: can't clean up immutable changesets 45396c49d53b | |
|
252 | rebase aborted | |
|
254 | 253 | |
|
255 | 254 | $ hg tglogp |
|
256 | 255 | @ 5:public 'B' |
General Comments 0
You need to be logged in to leave comments.
Login now