diff mercurial/localrepo.py @ 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 89b7a7883aee
children efd57cd6fd1d
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: