tests/mockblackbox.py
author Boris Feld <boris.feld@octobus.net>
Tue, 01 Aug 2017 17:58:20 +0200
changeset 33688 2194a8723138
parent 32412 043948c84647
child 36105 f49c3ee5b02f
permissions -rw-r--r--
evolution: rename divergent to content-divergent Rename divergent to content-divergent in all external user-facing output. Only update user-facing output for the moment, variables names, templates keyword and potentially configuration would be done in later series. The renaming is done according to https://www.mercurial-scm.org/wiki/CEDVocabulary. Differential Revision: https://phab.mercurial-scm.org/D215

from __future__ import absolute_import
from mercurial import (
    util,
)

# XXX: we should probably offer a devel option to do this in blackbox directly
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.getuser = getuser
    util.getpid = getpid