diff mercurial/worker.py @ 52133: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
line wrap: on
line diff
--- a/mercurial/worker.py	Fri Oct 25 23:46:20 2024 -0400
+++ b/mercurial/worker.py	Sat Oct 26 23:33:19 2024 +0200
@@ -14,6 +14,7 @@
 import sys
 import threading
 import time
+import warnings
 
 from .i18n import _
 from . import (
@@ -23,6 +24,18 @@
     scmutil,
 )
 
+# XXX TODO: We should seriously look into this fork + thread issues, however
+# this is wreaking havoc in the tests suites, so silencing for now.
+warnings.filterwarnings(
+    'ignore',
+    message=(
+        r'This process \(pid=\d+\) is multi-threaded,'
+        r' use of fork\(\) may lead to deadlocks in the child.'
+    ),
+    category=DeprecationWarning,
+    module='mercurial.worker',
+)
+
 
 def countcpus():
     '''try to count the number of CPUs on the system'''