tests/mockblackbox.py
author Martin von Zweigbergk <martinvonz@google.com>
Wed, 17 May 2017 09:43:50 -0700
changeset 32352 0d6b3572ad92
parent 28943 417380aa5bbe
child 32450 043948c84647
permissions -rw-r--r--
match: remove ispartial() The function was added in d1d69ca78883 (match: add match.ispartial(), 2015-05-15) for use by narrowhg, but narrowhg never ended up needing it.

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