tests/mockblackbox.py
author Durham Goode <durham@fb.com>
Tue, 20 Sep 2016 12:24:01 -0700
changeset 29966 6b5a9a01f29d
parent 28943 417380aa5bbe
child 32450 043948c84647
permissions -rw-r--r--
manifest: add manifestlog.add This adds a simple add() function to manifestlog. This lets us convert more uses of repo.manifest to use repo.manifestlog, so we can further break our dependency on the manifest class.

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