Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 52738:5c37a03ccfb3
wlock: use named arg when calling `_lock`
This makes the call clearer.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 20 Dec 2024 16:11:19 +0100 |
parents | bbbb12632607 |
children | 0f2268783c11 |
line wrap: on
line diff
--- 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