Mercurial > public > mercurial-scm > hg-stable
view tests/mockblackbox.py @ 53036:fcd7cb10623d stable
drawdag: add documentation about special comment around files
The feature was not documented, so we start with documenting it before
extending it.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 11 Mar 2025 11:38:12 +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