This instance will be upgraded to Heptapod 0.26.0rc1 on 2021-10-25 at 14:00 UTC+2 (a few minutes of down time)

Commit 37f1a8a3 authored by Siddharth Agarwal's avatar Siddharth Agarwal
Browse files

localrepo: add a note about parentenvvar

Review feedback from Pierre-Yves David.
parent 41dd7b2c7e15
......@@ -1214,6 +1214,8 @@ class localrepository(object):
def _lock(self, vfs, lockname, wait, releasefn, acquirefn, desc,
parentenvvar=None):
parentlock = None
# the contents of parentenvvar are used by the underlying lock to
# determine whether it can be inherited
if parentenvvar is not None:
parentlock = os.environ.get(parentenvvar)
try:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment