tests/mockblackbox.py
author Bryan O'Sullivan <bryano@fb.com>
Tue, 12 Jan 2016 14:31:02 -0800
changeset 27774 8ceaaf63ca80
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
largefiles: use util.readfile in lfconvert

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