tests/mockblackbox.py
author Gregory Szorc <gregory.szorc@gmail.com>
Fri, 10 Apr 2015 22:26:53 -0400
changeset 24714 84859415a4c9
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
json: implement {comparison} template Similar to {filediff}, we abbreviate some property names to cut down on string bloat.

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