hgext/fix.py
changeset 44092 833210fbd900
parent 44090 2f0a44c69e07
child 44129 84a0102c05c7
--- a/hgext/fix.py	Fri Dec 27 15:14:19 2019 -0800
+++ b/hgext/fix.py	Fri Dec 27 13:47:59 2019 -0800
@@ -734,8 +734,7 @@
     extra[b'fix_source'] = ctx.hex()
 
     wctx = context.overlayworkingctx(repo)
-    newp1ctx = repo[newp1node]
-    wctx.setbase(newp1ctx)
+    wctx.setbase(repo[newp1node])
     merge.update(
         repo,
         ctx.rev(),
@@ -745,7 +744,7 @@
         mergeancestor=False,
         wc=wctx,
     )
-    copies.graftcopies(repo, wctx, ctx, ctx.p1(), skip=newp1ctx)
+    copies.graftcopies(wctx, ctx, ctx.p1())
 
     for path in filedata.keys():
         fctx = ctx[path]