tests/mockblackbox.py
author Gregory Szorc <gregory.szorc@gmail.com>
Fri, 02 Oct 2015 15:58:24 -0700
changeset 26442 ef8d27f53204
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
streamclone: move stream_in() from localrepo Another basic content move. The underscore from the function name was removed to comply with naming standards.

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