tests/mockblackbox.py
author Martin von Zweigbergk <martinvonz@google.com>
Fri, 08 Jan 2016 14:33:13 -0800
changeset 27690 8b01558d5d23
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
changegroup: remove left-over debugging help

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