Mercurial > hg-stable
view tests/mockblackbox.py @ 51892:5baa52ca4932
rust-inner-revlog: always inline `get_entry`
This is a very hot function.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 12 Sep 2024 10:09:06 +0200 |
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