--- a/hgext/uncommit.py Wed Jan 25 18:46:20 2023 +0100
+++ b/hgext/uncommit.py Wed Jan 25 19:12:31 2023 +0100
@@ -236,7 +236,7 @@
# Fully removed the old commit
mapping[old.node()] = ()
- with repo.dirstate.parentchange(repo):
+ with repo.dirstate.changing_parents(repo):
scmutil.movedirstate(repo, repo[newid], match)
scmutil.cleanupnodes(repo, mapping, b'uncommit', fixphase=True)
@@ -317,7 +317,7 @@
newpredctx = repo[newprednode]
dirstate = repo.dirstate
- with dirstate.parentchange(repo):
+ with dirstate.changing_parents(repo):
scmutil.movedirstate(repo, newpredctx)
mapping = {curctx.node(): (newprednode,)}