tests/mockblackbox.py
author Matt Mackall <mpm@selenic.com>
Sun, 20 Dec 2015 16:34:54 -0600
changeset 27449 77c51a56392e
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
merge with stable

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