tests/mockblackbox.py
author timeless <timeless@mozdev.org>
Thu, 21 Jan 2016 00:20:19 +0000
branchstable
changeset 27921 158bdc896572
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
shelve: lowercase flag description The help for --unknown is the *only* command that started with a capital letter

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