diff -r e3952d8cfeb5 -r 028bac79cf34 mercurial/upgrade_utils/engine.py --- a/mercurial/upgrade_utils/engine.py Sun Oct 13 04:55:48 2024 +0200 +++ b/mercurial/upgrade_utils/engine.py Wed Oct 09 13:55:04 2024 -0400 @@ -31,6 +31,14 @@ def get_sidedata_helpers(srcrepo, dstrepo): use_w = srcrepo.ui.configbool(b'experimental', b'worker.repository-upgrade') + + if use_w and pycompat.isdarwin: + # Avoid a PicklingError on macOS in bundlerepository. + use_w = False + srcrepo.ui.debug( + b'ignoring experimental.worker.repository-upgrade=True on darwin' + ) + sequential = pycompat.iswindows or not use_w if not sequential: srcrepo.register_sidedata_computer(