view tests/mockblackbox.py @ 25370:faed8e52b81f

tests: use bundle2 for test-hook Using bundle2 has an effect on which hooks are run when. We turn it on for test-hooks early to reduce the noise of switching the default exchange to bundle2.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 27 May 2015 04:56:44 -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