comparison mercurial/upgrade_utils/engine.py @ 52001: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 f4733654f144
children
comparison
equal deleted inserted replaced
52000:e3952d8cfeb5 52001:028bac79cf34
29 from . import actions as upgrade_actions 29 from . import actions as upgrade_actions
30 30
31 31
32 def get_sidedata_helpers(srcrepo, dstrepo): 32 def get_sidedata_helpers(srcrepo, dstrepo):
33 use_w = srcrepo.ui.configbool(b'experimental', b'worker.repository-upgrade') 33 use_w = srcrepo.ui.configbool(b'experimental', b'worker.repository-upgrade')
34
35 if use_w and pycompat.isdarwin:
36 # Avoid a PicklingError on macOS in bundlerepository.
37 use_w = False
38 srcrepo.ui.debug(
39 b'ignoring experimental.worker.repository-upgrade=True on darwin'
40 )
41
34 sequential = pycompat.iswindows or not use_w 42 sequential = pycompat.iswindows or not use_w
35 if not sequential: 43 if not sequential:
36 srcrepo.register_sidedata_computer( 44 srcrepo.register_sidedata_computer(
37 revlogconst.KIND_CHANGELOG, 45 revlogconst.KIND_CHANGELOG,
38 sidedatamod.SD_FILES, 46 sidedatamod.SD_FILES,