##// END OF EJS Templates
revsetlang: factor out helper to match ancestors() in parsed tree...
revsetlang: factor out helper to match ancestors() in parsed tree More checks will be added.

File last commit:

r32412:043948c8 default
r32912:c808507c 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