Mercurial > hg
changeset 26472:406a654b41cb
localrepo: add a note about parentenvvar
Review feedback from Pierre-Yves David.
author | Siddharth Agarwal <sid0@fb.com> |
---|---|
date | Sun, 04 Oct 2015 19:28:43 -0700 |
parents | 41dd7b2c7e15 |
children | 5f94e64f182c |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Sun Oct 04 12:11:44 2015 -0700 +++ b/mercurial/localrepo.py Sun Oct 04 19:28:43 2015 -0700 @@ -1214,6 +1214,8 @@ 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: