tests/mockblackbox.py
author Anton Shestakov <engored@ya.ru>
Fri, 15 May 2015 20:02:41 +0800
changeset 25134 339e3cc073ac
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
paper: show branch/tags/bookmarks when diffing (issue3559)

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