mercurial/localrepo.py
changeset 52724 5c37a03ccfb3
parent 52673 bbbb12632607
child 52725 0f2268783c11
--- a/mercurial/localrepo.py	Sun Feb 02 00:20:11 2025 +0100
+++ b/mercurial/localrepo.py	Fri Dec 20 16:11:19 2024 +0100
@@ -3173,12 +3173,12 @@
                 del unfi.__dict__['dirstate']
 
         l = self._lock(
-            self.vfs,
-            b"wlock",
-            wait,
-            unlock,
-            self.invalidatedirstate,
-            _(b'working directory of %s') % self.origroot,
+            vfs=self.vfs,
+            lockname=b"wlock",
+            wait=wait,
+            releasefn=unlock,
+            acquirefn=self.invalidatedirstate,
+            desc=_(b'working directory of %s') % self.origroot,
         )
         self._wlockref = weakref.ref(l)
         return l