tests/mockblackbox.py
author Anton Shestakov <av6@dwimlabs.net>
Fri, 11 Mar 2016 22:30:04 +0800
changeset 28471 f106913c6a4e
parent 28028 ac49ecb2a897
child 28943 417380aa5bbe
permissions -rw-r--r--
convert: specify unit for ui.progress when scanning paths

from mercurial import util

def makedate():
    return 0, 0
def getuser():
    return 'bob'
def getpid():
    return 5000

# mock the date and user apis so the output is always the same
def uisetup(ui):
    util.makedate = makedate
    util.getuser = getuser
    util.getpid = getpid