tests/mockblackbox.py
author Gregory Szorc <gregory.szorc@gmail.com>
Tue, 18 Apr 2017 10:49:46 -0700
branchstable
changeset 32058 0bb157bebb43
parent 28943 417380aa5bbe
child 32450 043948c84647
permissions -rw-r--r--
show: rename "underway" to "work" Durham and I both like this better than "underway." We can add aliases and bikeshed on the name during the 4.3 cycle, as this whole extension is highly experimental.

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