equal
deleted
inserted
replaced
11 import selectors |
11 import selectors |
12 import signal |
12 import signal |
13 import sys |
13 import sys |
14 import threading |
14 import threading |
15 import time |
15 import time |
|
16 import warnings |
16 |
17 |
17 from .i18n import _ |
18 from .i18n import _ |
18 from . import ( |
19 from . import ( |
19 encoding, |
20 encoding, |
20 error, |
21 error, |
21 pycompat, |
22 pycompat, |
22 scmutil, |
23 scmutil, |
|
24 ) |
|
25 |
|
26 # XXX TODO: We should seriously look into this fork + thread issues, however |
|
27 # this is wreaking havoc in the tests suites, so silencing for now. |
|
28 warnings.filterwarnings( |
|
29 'ignore', |
|
30 message=( |
|
31 r'This process \(pid=\d+\) is multi-threaded,' |
|
32 r' use of fork\(\) may lead to deadlocks in the child.' |
|
33 ), |
|
34 category=DeprecationWarning, |
|
35 module='mercurial.worker', |
23 ) |
36 ) |
24 |
37 |
25 |
38 |
26 def countcpus(): |
39 def countcpus(): |
27 '''try to count the number of CPUs on the system''' |
40 '''try to count the number of CPUs on the system''' |