Mercurial > hg
view tests/mockblackbox.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 | 0ead0a07ed9c |
children | ac49ecb2a897 |
line wrap: on
line source
from mercurial import util def makedate(): return 0, 0 def getuser(): return 'bob' # mock the date and user apis so the output is always the same def uisetup(ui): util.makedate = makedate util.getuser = getuser