git: 5b7560e401d4 - main - devel/mercurial: fix hg built against python314

From: Matthias Andree <mandree_at_FreeBSD.org>
Date: Sat, 03 Jan 2026 23:55:32 UTC
The branch main has been updated by mandree:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5b7560e401d4ff4f5c7b5e3d81cc949b126572a1

commit 5b7560e401d4ff4f5c7b5e3d81cc949b126572a1
Author:     Matthias Andree <mandree@FreeBSD.org>
AuthorDate: 2026-01-03 23:47:03 +0000
Commit:     Matthias Andree <mandree@FreeBSD.org>
CommitDate: 2026-01-03 23:55:12 +0000

    devel/mercurial: fix hg built against python314
    
    Reported by:    Gunther Nikl
    PR:             292050
    MFH:            2025Q4
    (2026Q1 has not yet been created)
    Approved by:    portmgr@ (just-fix-it blanket)
    Obtained from:  https://foss.heptapod.net/mercurial/mercurial-devel/-/commit/fb8373b37f6e9942f7def675c9051b7ac5e727b4
---
 devel/mercurial/Makefile                                   |  1 +
 devel/mercurial/files/patch-hgdemandimport_____init____.py | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/devel/mercurial/Makefile b/devel/mercurial/Makefile
index f943f2244fbb..92f10715c22c 100644
--- a/devel/mercurial/Makefile
+++ b/devel/mercurial/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	mercurial
 PORTVERSION=	6.9.5
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	https://www.mercurial-scm.org/release/
 
diff --git a/devel/mercurial/files/patch-hgdemandimport_____init____.py b/devel/mercurial/files/patch-hgdemandimport_____init____.py
new file mode 100644
index 000000000000..a6f4c1d7ae80
--- /dev/null
+++ b/devel/mercurial/files/patch-hgdemandimport_____init____.py
@@ -0,0 +1,10 @@
+--- hgdemandimport/__init__.py.orig	2025-04-03 13:32:42 UTC
++++ hgdemandimport/__init__.py
+@@ -60,6 +60,7 @@ IGNORES = {
+     'setuptools',
+     '_distutils_hack.override',
+     # threading is locally imported by importlib.util.LazyLoader.exec_module
++    '_contextvars',
+     '_weakrefset',
+     'warnings',
+     'threading',