tests/mockblackbox.py
author Martin von Zweigbergk <martinvonz@google.com>
Mon, 03 Apr 2017 10:01:38 -0700
changeset 31791 417363736c11
parent 28943 417380aa5bbe
child 32450 043948c84647
permissions -rw-r--r--
tags: rename "head" to "node" where we don't care Followup to 5eb4d206202b (tags: extract fnode retrieval into its own function, 2017-03-28) in which the "for head in head" became "for head in nodes".

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