diff --git a/hgext3rd/fbamend/fold.py b/hgext3rd/fbamend/fold.py --- a/hgext3rd/fbamend/fold.py +++ b/hgext3rd/fbamend/fold.py @@ -137,8 +137,8 @@ commitopts=commitopts) phases.retractboundary(repo, tr, targetphase, [newid]) - obsolete.createmarkers(repo, [(ctx, (repo[newid],)) - for ctx in allctx], operation='fold') + replacements = {ctx.node(): (newid,) for ctx in allctx} + scmutil.cleanupnodes(repo, replacements, 'fold') ui.status(_('%i changesets folded\n') % len(revs)) if repo['.'].rev() in revs: