Mercurial > hg
view tests/mockblackbox.py @ 28355:897a4bbd578b
hgclient: use absolute_import and print_function
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 06 Mar 2016 03:15:45 +0530 |
parents | ac49ecb2a897 |
children | 417380aa5bbe |
line wrap: on
line source
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