Mercurial > public > mercurial-scm > hg-stable
view tests/mockblackbox.py @ 52140:dc97e8670dec stable 6.9rc0
doc: register the `config-doc` rst directive
This was making the build fail because the directive was unknown.
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Mon, 28 Oct 2024 16:25:23 +0100 |
parents | ca7bde5dbafb |
children |
line wrap: on
line source
from mercurial.utils import procutil # XXX: we should probably offer a devel option to do this in blackbox directly def getuser(): return b'bob' def getpid(): return 5000 # mock the date and user apis so the output is always the same def uisetup(ui): procutil.getuser = getuser procutil.getpid = getpid