equal
deleted
inserted
replaced
2739 new = repo[newid] |
2739 new = repo[newid] |
2740 obs = [(old, (new,))] |
2740 obs = [(old, (new,))] |
2741 if node: |
2741 if node: |
2742 obs.append((ctx, ())) |
2742 obs.append((ctx, ())) |
2743 |
2743 |
2744 obsolete.createmarkers(repo, obs) |
2744 obsolete.createmarkers(repo, obs, operation='amend') |
2745 if not createmarkers and newid != old.node(): |
2745 if not createmarkers and newid != old.node(): |
2746 # Strip the intermediate commit (if there was one) and the amended |
2746 # Strip the intermediate commit (if there was one) and the amended |
2747 # commit |
2747 # commit |
2748 if node: |
2748 if node: |
2749 ui.note(_('stripping intermediate changeset %s\n') % ctx) |
2749 ui.note(_('stripping intermediate changeset %s\n') % ctx) |