hgext/win32text.py
changeset 49960 c166b212bdee
parent 49284 d44e3c45f0e4
child 49961 7a8bfc05b691
--- a/hgext/win32text.py	Tue Dec 13 10:00:04 2022 +0100
+++ b/hgext/win32text.py	Wed Jan 25 18:46:20 2023 +0100
@@ -216,7 +216,7 @@
 def wrap_revert(orig, repo, ctx, names, uipathfn, actions, *args, **kwargs):
     # reset dirstate cache for file we touch
     ds = repo.dirstate
-    with ds.parentchange():
+    with ds.parentchange(repo):
         for filename in actions[b'revert'][0]:
             entry = ds.get_entry(filename)
             if entry is not None: