Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
mercurial-devel
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mercurial
mercurial-devel
Merge requests
!1021
more Python 3.13 compatibility fixes
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
more Python 3.13 compatibility fixes
topic/stable/fork-thread
into
branch/stable
Overview
0
Commits
3
Pipelines
6
Changes
3
Merged
Pierre-Yves David
requested to merge
topic/stable/fork-thread
into
branch/stable
5 months ago
Overview
0
Commits
3
Pipelines
6
Changes
3
Expand
0
0
Merge request reports
Compare
branch/stable
version 5
d49450ef
5 months ago
version 4
d1309df6
5 months ago
version 3
2c42b84c
5 months ago
version 2
fd59e9a0
5 months ago
version 1
e233eb47
5 months ago
branch/stable (base)
and
latest version
latest version
50415066
3 commits,
5 months ago
version 5
d49450ef
3 commits,
5 months ago
version 4
d1309df6
3 commits,
5 months ago
version 3
2c42b84c
1 commit,
5 months ago
version 2
fd59e9a0
5 commits,
5 months ago
version 1
e233eb47
5 commits,
5 months ago
3 files
+
14
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
mercurial/worker.py
+
13
−
0
Options
@@ -13,6 +13,7 @@
import
sys
import
threading
import
time
import
warnings
from
.i18n
import
_
from
.
import
(
@@ -22,6 +23,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
'''
Loading