diff -r c166b212bdee -r 7a8bfc05b691 mercurial/merge.py --- a/mercurial/merge.py Wed Jan 25 18:46:20 2023 +0100 +++ b/mercurial/merge.py Wed Jan 25 19:12:31 2023 +0100 @@ -2155,7 +2155,7 @@ assert len(getfiledata) == ( mresult.len((mergestatemod.ACTION_GET,)) if wantfiledata else 0 ) - with repo.dirstate.parentchange(repo): + with repo.dirstate.changing_parents(repo): ### Filter Filedata # # We gathered "cache" information for the clean file while @@ -2377,7 +2377,7 @@ # fix up dirstate for copies and renames copies.graftcopies(wctx, ctx, base) else: - with repo.dirstate.parentchange(repo): + with repo.dirstate.changing_parents(repo): repo.setparents(pctx.node(), pother) repo.dirstate.write(repo.currenttransaction()) # fix up dirstate for copies and renames