tests/mockblackbox.py
author Kostia Balytskyi <ikostia@fb.com>
Mon, 04 Apr 2016 02:05:10 -0700
changeset 28845 5a398627db92
parent 28028 ac49ecb2a897
child 28943 417380aa5bbe
permissions -rw-r--r--
commands: make --rev and --index compatible in debugobsolete

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