--- a/hgext/fix.py Fri Dec 27 13:03:40 2019 -0800
+++ b/hgext/fix.py Mon Jan 06 15:24:36 2020 -0800
@@ -734,7 +734,8 @@
extra[b'fix_source'] = ctx.hex()
wctx = context.overlayworkingctx(repo)
- wctx.setbase(repo[newp1node])
+ newp1ctx = repo[newp1node]
+ wctx.setbase(newp1ctx)
merge.update(
repo,
ctx.rev(),
@@ -744,9 +745,7 @@
mergeancestor=False,
wc=wctx,
)
- copies.duplicatecopies(
- repo, wctx, ctx.rev(), ctx.p1().rev(), skiprev=newp1node
- )
+ copies.graftcopies(repo, wctx, ctx, ctx.p1(), skip=newp1ctx)
for path in filedata.keys():
fctx = ctx[path]