Mercurial > public > mercurial-scm > hg
changeset 52724: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 | a502f3f389b5 |
children | 0f2268783c11 |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
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