hgext/uncommit.py
changeset 49960 c166b212bdee
parent 48983 533820f5b997
child 49961 7a8bfc05b691
--- a/hgext/uncommit.py	Tue Dec 13 10:00:04 2022 +0100
+++ b/hgext/uncommit.py	Wed Jan 25 18:46:20 2023 +0100
@@ -236,7 +236,7 @@
                 # Fully removed the old commit
                 mapping[old.node()] = ()
 
-            with repo.dirstate.parentchange():
+            with repo.dirstate.parentchange(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():
+        with dirstate.parentchange(repo):
             scmutil.movedirstate(repo, newpredctx)
 
         mapping = {curctx.node(): (newprednode,)}