tests/mockblackbox.py
author timeless <timeless@mozdev.org>
Fri, 22 Jan 2016 20:32:47 +0000
branchstable
changeset 27932 6bc2299cc12f
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
rebase: restore help for rebase w/o args (issue5059) Restoring documentation accidentally removed in a9a047878e14.

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