Show More
@@ -433,6 +433,10 b' def collapse(repo, first, last, commitop' | |||||
433 | ctxs = list(repo.set('%d::%d', first, last)) |
|
433 | ctxs = list(repo.set('%d::%d', first, last)) | |
434 | if not ctxs: |
|
434 | if not ctxs: | |
435 | return None |
|
435 | return None | |
|
436 | for c in ctxs: | |||
|
437 | if not c.mutable(): | |||
|
438 | raise util.Abort( | |||
|
439 | _("cannot fold into public change %s") % node.short(c.node())) | |||
436 | base = first.parents()[0] |
|
440 | base = first.parents()[0] | |
437 |
|
441 | |||
438 | # commit a new version of the old changeset, including the update |
|
442 | # commit a new version of the old changeset, including the update |
@@ -456,12 +456,12 b' Attempting to fold a change into a publi' | |||||
456 | > cat "\$1" | sed s/pick/fold/ > tmp |
|
456 | > cat "\$1" | sed s/pick/fold/ > tmp | |
457 | > mv tmp "\$1" |
|
457 | > mv tmp "\$1" | |
458 | > EOF |
|
458 | > EOF | |
459 | (BROKEN) |
|
|||
460 | $ HGEDITOR="sh ../edit.sh" hg histedit 2 |
|
459 | $ HGEDITOR="sh ../edit.sh" hg histedit 2 | |
461 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
460 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
462 | reverting a |
|
461 | reverting a | |
463 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
462 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
464 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
463 | abort: cannot fold into public change 18aa70c8ad22 | |
465 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
464 | [255] | |
466 | saved backup bundle to $TESTTMP/r0/.hg/strip-backup/18aa70c8ad22-3aea8ae3-backup.hg (glob) |
|
465 | TODO: this abort shouldn't be required, but it is for now to leave the repo in | |
467 | (BROKEN) |
|
466 | a clean state. | |
|
467 | $ hg histedit --abort |
General Comments 0
You need to be logged in to leave comments.
Login now