Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 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 | bbbb12632607 |
children | 0f2268783c11 |
comparison
equal
deleted
inserted
replaced
52723:a502f3f389b5 | 52724:5c37a03ccfb3 |
---|---|
3171 unfi = self.unfiltered() | 3171 unfi = self.unfiltered() |
3172 if 'dirstate' in unfi.__dict__: | 3172 if 'dirstate' in unfi.__dict__: |
3173 del unfi.__dict__['dirstate'] | 3173 del unfi.__dict__['dirstate'] |
3174 | 3174 |
3175 l = self._lock( | 3175 l = self._lock( |
3176 self.vfs, | 3176 vfs=self.vfs, |
3177 b"wlock", | 3177 lockname=b"wlock", |
3178 wait, | 3178 wait=wait, |
3179 unlock, | 3179 releasefn=unlock, |
3180 self.invalidatedirstate, | 3180 acquirefn=self.invalidatedirstate, |
3181 _(b'working directory of %s') % self.origroot, | 3181 desc=_(b'working directory of %s') % self.origroot, |
3182 ) | 3182 ) |
3183 self._wlockref = weakref.ref(l) | 3183 self._wlockref = weakref.ref(l) |
3184 return l | 3184 return l |
3185 | 3185 |
3186 def _currentlock(self, lockref): | 3186 def _currentlock(self, lockref): |