hgext/fix.py
changeset 44271 c791ed6a2154
parent 44129 84a0102c05c7
child 44560 40f4a75938ba
--- a/hgext/fix.py	Wed Jan 15 15:30:25 2020 -0800
+++ b/hgext/fix.py	Wed Jan 15 14:47:38 2020 -0800
@@ -735,15 +735,7 @@
 
     wctx = context.overlayworkingctx(repo)
     wctx.setbase(repo[newp1node])
-    merge.update(
-        repo,
-        ctx.rev(),
-        branchmerge=False,
-        force=True,
-        ancestor=p1rev,
-        mergeancestor=False,
-        wc=wctx,
-    )
+    merge.revert_to(ctx, wc=wctx)
     copies.graftcopies(wctx, ctx, ctx.p1())
 
     for path in filedata.keys():