comparison mercurial/worker.py @ 52128:e08c878b5571

branching: merge stable into default Hopefully this will bring the last changes necessary to make the 3.13 tests green (on Linux).
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 26 Oct 2024 23:33:19 +0200
parents f4733654f144 49aeeda97c14
children
comparison
equal deleted inserted replaced
52127:2dce4c01cec1 52128:e08c878b5571
12 import selectors 12 import selectors
13 import signal 13 import signal
14 import sys 14 import sys
15 import threading 15 import threading
16 import time 16 import time
17 import warnings
17 18
18 from .i18n import _ 19 from .i18n import _
19 from . import ( 20 from . import (
20 encoding, 21 encoding,
21 error, 22 error,
22 pycompat, 23 pycompat,
23 scmutil, 24 scmutil,
25 )
26
27 # XXX TODO: We should seriously look into this fork + thread issues, however
28 # this is wreaking havoc in the tests suites, so silencing for now.
29 warnings.filterwarnings(
30 'ignore',
31 message=(
32 r'This process \(pid=\d+\) is multi-threaded,'
33 r' use of fork\(\) may lead to deadlocks in the child.'
34 ),
35 category=DeprecationWarning,
36 module='mercurial.worker',
24 ) 37 )
25 38
26 39
27 def countcpus(): 40 def countcpus():
28 '''try to count the number of CPUs on the system''' 41 '''try to count the number of CPUs on the system'''