tests/mockblackbox.py
author Siddharth Agarwal <sid0@fb.com>
Mon, 01 Feb 2016 20:28:32 -0800
changeset 28019 e81d11794036
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
merge: add missing doc for 'labels' parameter

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