tests/mockblackbox.py
author Pierre-Yves David <pierre-yves.david@fb.com>
Sun, 07 Jun 2015 15:49:57 -0700
changeset 25505 19717d3c8f94
parent 24705 0ead0a07ed9c
child 28028 ac49ecb2a897
permissions -rw-r--r--
changegroup: remove 'getchangegroupraw' function There is no remaining caller for this function.

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