tests/mockblackbox.py
author Yuya Nishihara <yuya@tcha.org>
Sat, 03 Oct 2015 18:48:21 +0900
changeset 26453 1a2578418689
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
pager: rename variables of backup fds The next patch will add backup file objects, so the original variable names would be confusing.

from mercurial import util

def makedate():
    return 0, 0
def getuser():
    return 'bob'

# mock the date and user apis so the output is always the same
def uisetup(ui):
    util.makedate = makedate
    util.getuser = getuser