##// END OF EJS Templates
subrepo: prefetch ctx.repo() for efficiency and centralization...
subrepo: prefetch ctx.repo() for efficiency and centralization 'subrepo.state()' refers same 'ctx.repo()' in many places and times.

File last commit:

r24705:0ead0a07 default
r25768:7a9ef860 default
Show More
mockblackbox.py
11 lines | 229 B | text/x-python | PythonLexer
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