##// END OF EJS Templates
rebase: remove "if True"...
rebase: remove "if True" The "if True" block was to make the last patch easier to review. This patch removes "if True" and unindents the block.

File last commit:

r32412:043948c8 default
r33333:8bfd10e4 default
Show More
mockblackbox.py
15 lines | 350 B | text/x-python | PythonLexer
Robert Stanca
py3: use absolute_import in mockblackbox.py
r28943 from __future__ import absolute_import
from mercurial import (
util,
)
Gregory Szorc
tests: move mock blackbox extension into own file...
r24705
Boris Feld
devel: update blackbox to use default-date...
r32412 # XXX: we should probably offer a devel option to do this in blackbox directly
Gregory Szorc
tests: move mock blackbox extension into own file...
r24705 def getuser():
return 'bob'
timeless
tests: mock getpid to reduce glob usage...
r28028 def getpid():
return 5000
Gregory Szorc
tests: move mock blackbox extension into own file...
r24705
# mock the date and user apis so the output is always the same
def uisetup(ui):
util.getuser = getuser
timeless
tests: mock getpid to reduce glob usage...
r28028 util.getpid = getpid