tests/mockblackbox.py
author Martin von Zweigbergk <martinvonz@google.com>
Mon, 27 Feb 2017 14:33:17 -0800
changeset 31169 955b3a6d3dd5
parent 28943 417380aa5bbe
child 32450 043948c84647
permissions -rw-r--r--
merge: drop redundant column in docstring table The "same" and "cross" columns now have the same values, so let's combine them into "non-linear".

from __future__ import absolute_import
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