comparison mercurial/localrepo.py @ 26475:efd57cd6fd1d

localrepo: allow wlock to be inherited This is part of a series that will allow locks to be inherited by subprocesses in limited circumstances. When allowed, the parent process will pass down requisite information to the child process by way of this environment variable.
author Siddharth Agarwal <sid0@fb.com>
date Fri, 25 Sep 2015 12:39:23 -0700
parents 406a654b41cb
children df2dc5141721
comparison
equal deleted inserted replaced
26474:431094a3b21f 26475:efd57cd6fd1d
1294 1294
1295 self._filecache['dirstate'].refresh() 1295 self._filecache['dirstate'].refresh()
1296 1296
1297 l = self._lock(self.vfs, "wlock", wait, unlock, 1297 l = self._lock(self.vfs, "wlock", wait, unlock,
1298 self.invalidatedirstate, _('working directory of %s') % 1298 self.invalidatedirstate, _('working directory of %s') %
1299 self.origroot) 1299 self.origroot, parentenvvar='HG_WLOCK_LOCKER')
1300 self._wlockref = weakref.ref(l) 1300 self._wlockref = weakref.ref(l)
1301 return l 1301 return l
1302 1302
1303 def _filecommit(self, fctx, manifest1, manifest2, linkrev, tr, changelist): 1303 def _filecommit(self, fctx, manifest1, manifest2, linkrev, tr, changelist):
1304 """ 1304 """