hgext/keyword.py
changeset 50022 c166b212bdee
parent 49037 642e31cb55f0
child 50023 7a8bfc05b691
--- a/hgext/keyword.py	Tue Dec 13 10:00:04 2022 +0100
+++ b/hgext/keyword.py	Wed Jan 25 18:46:20 2023 +0100
@@ -696,7 +696,7 @@
     kwt = getattr(repo, '_keywordkwt', None)
     if kwt is None:
         return orig(ui, repo, old, extra, pats, opts)
-    with repo.wlock(), repo.dirstate.parentchange():
+    with repo.wlock(), repo.dirstate.parentchange(repo):
         kwt.postcommit = True
         newid = orig(ui, repo, old, extra, pats, opts)
         if newid != old.node():
@@ -762,7 +762,7 @@
         if ctx != recctx:
             modified, added = _preselect(wstatus, recctx.files())
             kwt.restrict = False
-            with repo.dirstate.parentchange():
+            with repo.dirstate.parentchange(repo):
                 kwt.overwrite(recctx, modified, False, True)
                 kwt.overwrite(recctx, added, False, True, True)
             kwt.restrict = True