tests/mockblackbox.py
author liscju <piotr.listkiewicz@gmail.com>
Fri, 19 Feb 2016 22:28:09 +0100
changeset 28182 e4fe4e903e97
parent 28028 ac49ecb2a897
child 28943 417380aa5bbe
permissions -rw-r--r--
bookmarks: add 'hg push -B .' for pushing the active bookmark (issue4917)

from mercurial import util

def makedate():
    return 0, 0
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.makedate = makedate
    util.getuser = getuser
    util.getpid = getpid