localrepo: add a note about parentenvvar
authorSiddharth Agarwal <sid0@fb.com>
Sun, 04 Oct 2015 19:28:43 -0700
changeset 26472 406a654b41cb
parent 26471 41dd7b2c7e15
child 26473 5f94e64f182c
localrepo: add a note about parentenvvar Review feedback from Pierre-Yves David.
mercurial/localrepo.py
--- 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: