Mercurial > hg
view tests/mockblackbox.py @ 52005:028bac79cf34
upgrade: disable using the parallel workers optimization on macOS
It crashes `test-copies-chain-merge.t` for some reason[1]. It's only
experimental, and already hard-disabled on Windows.
[1] https://foss.heptapod.net/mercurial/mercurial-devel/-/jobs/2591045#L108
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 09 Oct 2024 13:55:04 -0400 |
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