# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@octobus.net>
# Date 1734707479 -3600
#      Fri Dec 20 16:11:19 2024 +0100
# Node ID 5c37a03ccfb3a0f1c4dcb286d75300d1a3fe204b
# Parent  a502f3f389b5cd3b3b2ed2f755a6de3da2474d89
wlock: use named arg when calling `_lock`

This makes the call clearer.

diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py
--- a/mercurial/localrepo.py
+++ b/mercurial/localrepo.py
@@ -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