Show More
@@ -618,14 +618,20 b' def bootstrapcontinue(ui, repo, parentct' | |||||
618 | replacements.append((ctx.node(), tuple(newchildren))) |
|
618 | replacements.append((ctx.node(), tuple(newchildren))) | |
619 |
|
619 | |||
620 | if action in ('f', 'fold'): |
|
620 | if action in ('f', 'fold'): | |
621 | # finalize fold operation if applicable |
|
621 | if newchildren: | |
622 | if new is None: |
|
622 | # finalize fold operation if applicable | |
623 |
new |
|
623 | if new is None: | |
|
624 | new = newchildren[-1] | |||
|
625 | else: | |||
|
626 | newchildren.pop() # remove new from internal changes | |||
|
627 | parentctx, repl = finishfold(ui, repo, parentctx, ctx, new, opts, | |||
|
628 | newchildren) | |||
|
629 | replacements.extend(repl) | |||
624 | else: |
|
630 | else: | |
625 | newchildren.pop() # remove new from internal changes |
|
631 | # newchildren is empty if the fold did not result in any commit | |
626 | parentctx, repl = finishfold(ui, repo, parentctx, ctx, new, opts, |
|
632 | # this happen when all folded change are discarded during the | |
627 | newchildren) |
|
633 | # merge. | |
628 | replacements.extend(repl) |
|
634 | replacements.append((ctx.node(), (parentctx.node(),))) | |
629 | elif newchildren: |
|
635 | elif newchildren: | |
630 | # otherwise update "parentctx" before proceeding to further operation |
|
636 | # otherwise update "parentctx" before proceeding to further operation | |
631 | parentctx = repo[newchildren[-1]] |
|
637 | parentctx = repo[newchildren[-1]] |
@@ -141,7 +141,7 b' folded content is dropped during a merge' | |||||
141 | $ cat > $EDITED <<EOF |
|
141 | $ cat > $EDITED <<EOF | |
142 | > pick 617f94f13c0f 1 +4 |
|
142 | > pick 617f94f13c0f 1 +4 | |
143 | > drop 888f9082bf99 2 +5 |
|
143 | > drop 888f9082bf99 2 +5 | |
144 |
> |
|
144 | > fold 251d831eeec5 3 +6 | |
145 | > EOF |
|
145 | > EOF | |
146 |
|
146 | |||
147 | $ HGEDITOR="cat \"$EDITED\" > " hg histedit 1 |
|
147 | $ HGEDITOR="cat \"$EDITED\" > " hg histedit 1 |
General Comments 0
You need to be logged in to leave comments.
Login now