[PATCH stable] pyproject: use old license format and avoid rushed setuptools upgrade

2025-08-03 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1754262262 -7200 # Mon Aug 04 01:04:22 2025 +0200 # Branch stable # Node ID f3dc5fefd778709d47a45157283e61690c0dd0d7 # Parent 23fca81a210f03a4ab35c537bf36b0c3b8e91b35 pyproject: use old license format and avoid rushed setuptools upgrade

[PATCH] help: fix invalid debugupgraderepo commands after reflow

2025-04-03 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1743693292 -7200 # Thu Apr 03 17:14:52 2025 +0200 # Branch stable # Node ID 90cf4330d9c80509291a640451ef23c1965c554c # Parent fa71dcfb2acea8240edafad2b5af93ba12004b58 help: fix invalid debugupgraderepo commands after reflow Mercurial

[PATCH stable] hgdemandimport: add collections.abc to the ignore list because Python 3.13 rc3

2024-10-07 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1728323604 -7200 # Mon Oct 07 19:53:24 2024 +0200 # Branch stable # Node ID 1e999ebad53283f787d82988197c2682dcc53b0b # Parent 7ff35f1290c0f922c6f6d77b1113679346d59f9d hgdemandimport: add collections.abc to the ignore list because Python 3.13

[PATCH 8 of 8] utils: avoid using internal _imp.is_frozen()

2024-07-26 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1687863903 -7200 # Tue Jun 27 13:05:03 2023 +0200 # Node ID f03fb79d2d55a0e7afd6dd7cf15fe442f79ff6d3 # Parent e5498d633f47c95891aa22ec354a6b19e3bf5260 utils: avoid using internal _imp.is_frozen() imp has been deprecated for a long time, and

[PATCH 7 of 8] utils: fix resourceutil use of deprecated importlib.resources

2024-07-26 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1721665203 -7200 # Mon Jul 22 18:20:03 2024 +0200 # Node ID e5498d633f47c95891aa22ec354a6b19e3bf5260 # Parent 3b18b545b9bf7af5ab97805121fa52b31a319d53 utils: fix resourceutil use of deprecated importlib.resources Some importlib

[PATCH 6 of 8] cext: use sys.executable instead of deprecated Py_GetProgramFullPath

2024-07-26 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1705001527 -3600 # Thu Jan 11 20:32:07 2024 +0100 # Node ID 3b18b545b9bf7af5ab97805121fa52b31a319d53 # Parent 60ffa0a3c5806d3e9cbbcb70eebd6a1afbe804d8 cext: use sys.executable instead of deprecated Py_GetProgramFullPath Fix warning with

[PATCH 5 of 8] subrepoutil: pass re.sub 'count' argument by name

2024-07-26 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1705006735 -3600 # Thu Jan 11 21:58:55 2024 +0100 # Node ID 60ffa0a3c5806d3e9cbbcb70eebd6a1afbe804d8 # Parent c625a18c3a3de93cf9750f23a496664c653a353d subrepoutil: pass re.sub 'count' argument by name Python 3.13 start

[PATCH 4 of 8] tests: pass re.MULTILINE to re.sub as 'flags' - not in 'count' position

2024-07-26 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1705006735 -3600 # Thu Jan 11 21:58:55 2024 +0100 # Node ID c625a18c3a3de93cf9750f23a496664c653a353d # Parent ff25ec7c3af036cdb39ac141e7b6e778611fbf34 tests: pass re.MULTILINE to re.sub as 'flags' - not in 'count' po

[PATCH 3 of 8] tests: use packaging from setuptools instead of deprecated distutils

2024-07-26 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1687807901 -7200 # Mon Jun 26 21:31:41 2023 +0200 # Node ID ff25ec7c3af036cdb39ac141e7b6e778611fbf34 # Parent 922b708e00ab7feb246d682132010185d9ced11d tests: use packaging from setuptools instead of deprecated distutils When invoking

[PATCH 2 of 8] tests: drop test-demandimport.py distutils test that failed with warnings

2024-07-26 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1687785411 -7200 # Mon Jun 26 15:16:51 2023 +0200 # Node ID 922b708e00ab7feb246d682132010185d9ced11d # Parent ac1c2c42edb73b7f7ee2de0950de74616d4bf3fb tests: drop test-demandimport.py distutils test that failed with warnings The test would

[PATCH 1 of 8] utils: test coverage of makedate

2024-07-26 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1688061747 -7200 # Thu Jun 29 20:02:27 2023 +0200 # Node ID ac1c2c42edb73b7f7ee2de0950de74616d4bf3fb # Parent 278af66e6595ff3baff92416839f7dbc427e24fd utils: test coverage of makedate Explore the scenario from ae04af1ce78d to avoid future

[PATCH 3 of 5] python3.13: address deprecation of re.sub positional argument 'count'

2024-01-11 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1705006735 -3600 # Thu Jan 11 21:58:55 2024 +0100 # Branch stable # Node ID 8e16bc622b04e2eabb3a47138aa3bdffba03e142 # Parent a06a7677696d8fa4fc3e33923425ef3fadd6f441 python3.13: address deprecation of re.sub positional argument '

[PATCH 5 of 5] rust: update to toml 0.8

2024-01-11 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1704999033 -3600 # Thu Jan 11 19:50:33 2024 +0100 # Branch stable # Node ID 646c00200241229c23dad41b1d086a610aff08b2 # Parent f2e61759ac0e0125e275acc72bda8a00258762b9 rust: update to toml 0.8 This is needed for Fedora packaging. diff --git

[PATCH 2 of 5] python3.13: fix resourceutil for removed deprecated importlib.resources

2024-01-11 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1705001574 -3600 # Thu Jan 11 20:32:54 2024 +0100 # Branch stable # Node ID a06a7677696d8fa4fc3e33923425ef3fadd6f441 # Parent ab3021e9b0012db64e5bdc70e3f5a36324925d8c python3.13: fix resourceutil for removed deprecated importlib.resources

[PATCH 1 of 5] python3.13: use sys.executable instead of removed Py_GetProgramFullPath

2024-01-11 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1705001527 -3600 # Thu Jan 11 20:32:07 2024 +0100 # Branch stable # Node ID ab3021e9b0012db64e5bdc70e3f5a36324925d8c # Parent 3f87e0d305cda6e66139a1969cd2cedd45477139 python3.13: use sys.executable instead of removed Py_GetProgramFullPath I

Re: [PATCH 1 of 6] utils: stop using datetime.utcfromtimestamp() deprecated in Python 3.12

2023-06-29 Thread Mads Kiilerich
On 28/06/2023 16:43, Mads Kiilerich wrote: # HG changeset patch # User Mads Kiilerich # Date 1687866710 -7200 # Tue Jun 27 13:51:50 2023 +0200 # Branch stable # Node ID ec46e9b39b2a6f5d0c59aa803e2eb5d9dfc44cc3 # Parent 2b0598121a71fa19c2174e4eee3400ec3a3b1c26 utils: stop using

[PATCH 6 of 6] extensions: imp module is removed in Python 3.12 - use importlib to load files

2023-06-28 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1687954993 -7200 # Wed Jun 28 14:23:13 2023 +0200 # Branch stable # Node ID 24d8509e44785f94047efebbcbb38986323913cd # Parent f45267a4d61f7687727efa7fe571d4f2522a3bb6 extensions: imp module is removed in Python 3.12 - use importlib to load

[PATCH 5 of 6] utils: imp module is removed in Python 3.12 - get is_frozen() from _imp

2023-06-28 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1687863903 -7200 # Tue Jun 27 13:05:03 2023 +0200 # Branch stable # Node ID f45267a4d61f7687727efa7fe571d4f2522a3bb6 # Parent 85a1bdb7d945c647670761676c97ce716fe3796d utils: imp module is removed in Python 3.12 - get is_frozen() from _imp

[PATCH 4 of 6] extensions: address ast deprecations introduced in Python 3.12

2023-06-28 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1687897904 -7200 # Tue Jun 27 22:31:44 2023 +0200 # Branch stable # Node ID 85a1bdb7d945c647670761676c97ce716fe3796d # Parent b6633799949e428d27f7704636da0da31a599e6b extensions: address ast deprecations introduced in Python 3.12 Tests

[PATCH 3 of 6] vfs: handle shutil.rmtree deprecation of onerror in Python 3.12

2023-06-28 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1687847952 -7200 # Tue Jun 27 08:39:12 2023 +0200 # Branch stable # Node ID b6633799949e428d27f7704636da0da31a599e6b # Parent 27c7a6d21b9dae4d465a569480331d2467b423f2 vfs: handle shutil.rmtree deprecation of onerror in Python 3.12 Tests

[PATCH 2 of 6] tests: fix sortdict doctest with Python 3.12

2023-06-28 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1687853351 -7200 # Tue Jun 27 10:09:11 2023 +0200 # Branch stable # Node ID 27c7a6d21b9dae4d465a569480331d2467b423f2 # Parent ec46e9b39b2a6f5d0c59aa803e2eb5d9dfc44cc3 tests: fix sortdict doctest with Python 3.12 The output of OrderedDict

[PATCH 1 of 6] utils: stop using datetime.utcfromtimestamp() deprecated in Python 3.12

2023-06-28 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1687866710 -7200 # Tue Jun 27 13:51:50 2023 +0200 # Branch stable # Node ID ec46e9b39b2a6f5d0c59aa803e2eb5d9dfc44cc3 # Parent 2b0598121a71fa19c2174e4eee3400ec3a3b1c26 utils: stop using datetime.utcfromtimestamp() deprecated in Python 3.12

[PATCH 10 of 10] hgweb: drop references to deprecated cgitb

2023-06-27 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1687795228 -7200 # Mon Jun 26 18:00:28 2023 +0200 # Branch stable # Node ID 6ca3c985d3fe233bde88057e1a04f6c2c5ab71fd # Parent 5a32d6ab784657d51dc02c9e86ad92d4efd21ee8 hgweb: drop references to deprecated cgitb cgitb is going away and gives

[PATCH 09 of 10] setup: fall back to setuptools setup if distutils isn't available

2023-06-27 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1687860557 -7200 # Tue Jun 27 12:09:17 2023 +0200 # Branch stable # Node ID 5a32d6ab784657d51dc02c9e86ad92d4efd21ee8 # Parent 7d0800b9c059349f6ad373215e718ddc7455ee91 setup: fall back to setuptools setup if distutils isn't available

[PATCH 07 of 10] tests: fix dummysmtpd argument check

2023-06-27 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1687790713 -7200 # Mon Jun 26 16:45:13 2023 +0200 # Branch stable # Node ID 0fc04b7dda3c22b6eda5385e59be8307f883a88e # Parent 22a8aa225c38766ddd29c51348dd4484b5e58f59 tests: fix dummysmtpd argument check diff --git a/tests/dummysmtpd.py b

[PATCH 08 of 10] tests: use simple mock smtp server instead of deprecated asyncore smtpd

2023-06-27 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1679586312 -3600 # Thu Mar 23 16:45:12 2023 +0100 # Branch stable # Node ID 7d0800b9c059349f6ad373215e718ddc7455ee91 # Parent 0fc04b7dda3c22b6eda5385e59be8307f883a88e tests: use simple mock smtp server instead of deprecated asyncore smtpd

[PATCH 05 of 10] tests: show test-patchbomb-tls.t smtp server log

2023-06-27 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1679586524 -3600 # Thu Mar 23 16:48:44 2023 +0100 # Branch stable # Node ID 54a4e277ff2c32c7fd67bebfb04cac25034cc2b2 # Parent 8687d17528a1fe764572c402f2d0198d5a6c8fbc tests: show test-patchbomb-tls.t smtp server log Improve test coverage by

[PATCH 06 of 10] tests: improve test-patchbomb-tls.t by by logging errors and data

2023-06-27 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1687787499 -7200 # Mon Jun 26 15:51:39 2023 +0200 # Branch stable # Node ID 22a8aa225c38766ddd29c51348dd4484b5e58f59 # Parent 54a4e277ff2c32c7fd67bebfb04cac25034cc2b2 tests: improve test-patchbomb-tls.t by by logging errors and data The

[PATCH 04 of 10] demandimport: don't delay _distutils_hack import

2023-06-27 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1687908670 -7200 # Wed Jun 28 01:31:10 2023 +0200 # Branch stable # Node ID 8687d17528a1fe764572c402f2d0198d5a6c8fbc # Parent deb45f7a7f7bdc36c36f7bfb63c36701b44972ab demandimport: don't delay _distutils_hack import test-demandimpo

[PATCH 02 of 10] tests: use grep -F instead of obsolescent fgrep

2023-06-27 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1687784040 -7200 # Mon Jun 26 14:54:00 2023 +0200 # Branch stable # Node ID 141a32ae6e30dc9bdf0e742f240734afa37f3054 # Parent 2790b07cd5da2be40fd5299ae114a49eb6196e55 tests: use grep -F instead of obsolescent fgrep Testing on Fedora 38

[PATCH 03 of 10] tests: update test-remotefilelog-gc.t for Python 3.11

2023-06-27 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1679497559 -3600 # Wed Mar 22 16:05:59 2023 +0100 # Branch stable # Node ID deb45f7a7f7bdc36c36f7bfb63c36701b44972ab # Parent 141a32ae6e30dc9bdf0e742f240734afa37f3054 tests: update test-remotefilelog-gc.t for Python 3.11 The test output

[PATCH 5 of 5 stable] tests: update test-remotefilelog-gc.t for Python 3.11

2023-03-22 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1679497559 -3600 # Wed Mar 22 16:05:59 2023 +0100 # Branch stable # Node ID 2ba2e699e4c38398ab4d408e7cd3d3f148ea11c1 # Parent 7c544bc71aaca594998649ae02d35fb4dd7606b4 tests: update test-remotefilelog-gc.t for Python 3.11 The test output

[PATCH 4 of 5 stable] tests: skip test-https.t TLSv1 testing when system doesn't support it

2023-03-22 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1679500739 -3600 # Wed Mar 22 16:58:59 2023 +0100 # Branch stable # Node ID 7c544bc71aaca594998649ae02d35fb4dd7606b4 # Parent d641581ee136281971555adc05049b826e995fed tests: skip test-https.t TLSv1 testing when system doesn't support it

[PATCH 3 of 5 stable] tests: update test-serve.t to use $EACCES$

2023-03-22 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1679494603 -3600 # Wed Mar 22 15:16:43 2023 +0100 # Branch stable # Node ID d641581ee136281971555adc05049b826e995fed # Parent 0a2a580319267132acd4ab558b0bfcd4f995a50f tests: update test-serve.t to use $EACCES$ diff --git a/tests/test

[PATCH 2 of 5 stable] tests: update test-transaction-rollback-on-revlog-split.t after e2ba2234bf1c

2023-03-22 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1679494192 -3600 # Wed Mar 22 15:09:52 2023 +0100 # Branch stable # Node ID 0a2a580319267132acd4ab558b0bfcd4f995a50f # Parent 34c33da95b1aede3c9e63d1508570e2d8c620d9c tests: update test-transaction-rollback-on-revlog-split.t after

[PATCH 1 of 5 stable] tests: avoid using black >= 21

2023-03-22 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1679416596 -3600 # Tue Mar 21 17:36:36 2023 +0100 # Branch stable # Node ID 34c33da95b1aede3c9e63d1508570e2d8c620d9c # Parent 4be9ecc982e19362747497276fa0841941787d08 tests: avoid using black >= 21 Different formatting will make test-ch

Re: [PATCH 1 of 2] py3: fix for Python 3.12 emitting SyntaxWarning on invalid escape sequences

2023-03-21 Thread Mads Kiilerich
Thanks for landing the previous 3.12 fixes. But I missed one fix ... The remaining test failures on 3.12 are mostly from the removal (asyncore, smtpd and distutils) and deprecation (cgitb) in standard library. /Mads ___ Mercurial-devel mailing list M

[PATCH 2 of 2] tests: avoid using black >= 21

2023-03-21 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1679416596 -3600 # Tue Mar 21 17:36:36 2023 +0100 # Branch stable # Node ID c6a1fc106a05b608983caced38a1849b2f4b476f # Parent 812482250f8d49159bb3024f08e0db38d0bad565 tests: avoid using black >= 21 Different formatting will make test-ch

[PATCH 1 of 2] py3: fix for Python 3.12 emitting SyntaxWarning on invalid escape sequences

2023-03-21 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1679414842 -3600 # Tue Mar 21 17:07:22 2023 +0100 # Branch stable # Node ID 812482250f8d49159bb3024f08e0db38d0bad565 # Parent 87f0155d68aa56dcba2326692fff893c283cca96 py3: fix for Python 3.12 emitting SyntaxWarning on invalid escape

Re: [PATCH 4 of 4 stable] hg-core: upgrade `zstd` dependency to 0.12

2023-03-14 Thread Mads Kiilerich
On 13/03/2023 15:44, Raphaël Gomès wrote: The idea is to have everything run through the CI. Contributions going through the repo and thus Heptapod makes it much easier for reviewers. Email remains as the lowest bar of entry (since you don't need an account and two out-of-core extensions) and

Re: [PATCH 4 of 4 stable] hg-core: upgrade `zstd` dependency to 0.12

2023-03-10 Thread Mads Kiilerich
stable, but last time I queued something from the ML I think I angered the heptapod gods, so I’ll tag a couple of people that can hopefully push this on our behalf. AF On Mar 7, 2023, at 13:23, Mads Kiilerich wrote: # HG changeset patch # User Mads Kiilerich # Date 1678212582 -3600

[PATCH 4 of 4 stable] hg-core: upgrade `zstd` dependency to 0.12

2023-03-07 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1678212582 -3600 # Tue Mar 07 19:09:42 2023 +0100 # Branch stable # Node ID 98085f80f5b0c786dad342ad1eb9335dda653496 # Parent 6ab12a75c936e0f1bf4305b9fdf9960219d1a39c hg-core: upgrade `zstd` dependency to 0.12 zstd was recently upgraded

[PATCH 3 of 4 stable] statprof: with Python 3.12, lineno is (more) often None

2023-03-07 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1678205618 -3600 # Tue Mar 07 17:13:38 2023 +0100 # Branch stable # Node ID 6ab12a75c936e0f1bf4305b9fdf9960219d1a39c # Parent 72ba5a6dbb52570fbdfa07ce15ac6ad88e35f63c statprof: with Python 3.12, lineno is (more) often None test-profile.t

[PATCH 2 of 4 stable] py3: fix for Python 3.12 emitting SyntaxWarning on invalid escape sequences

2023-03-07 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1678203954 -3600 # Tue Mar 07 16:45:54 2023 +0100 # Branch stable # Node ID 72ba5a6dbb52570fbdfa07ce15ac6ad88e35f63c # Parent 1efa4e96f6461bf071b28d66b13bdb67fdc91fc6 py3: fix for Python 3.12 emitting SyntaxWarning on invalid escape

[PATCH 1 of 4 stable] cext: fix for PyLong refactoring in CPython 3.12

2023-03-07 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1678202751 -3600 # Tue Mar 07 16:25:51 2023 +0100 # Branch stable # Node ID 1efa4e96f6461bf071b28d66b13bdb67fdc91fc6 # Parent 8a65b43457aba02741bedabe100823d3041af0b5 cext: fix for PyLong refactoring in CPython 3.12 Compiling Mercurial with

Re: [PATCH stable] rust: bump to memmap2 0.5.3, micro-timer 0.4.0, and crossbeam-channel 0.5.0

2022-07-29 Thread Mads Kiilerich
Raphaël, could you please have a look at this? /Mads On 7/11/22 23:03, Mads Kiilerich wrote: # HG changeset patch # User Mads Kiilerich # Date 1657572476 -7200 # Mon Jul 11 22:47:56 2022 +0200 # Branch stable # Node ID f1713e81437e894fab0658e4f410184e10d35e5e # Parent

[PATCH stable] rust: bump to memmap2 0.5.3, micro-timer 0.4.0, and crossbeam-channel 0.5.0

2022-07-11 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1657572476 -7200 # Mon Jul 11 22:47:56 2022 +0200 # Branch stable # Node ID f1713e81437e894fab0658e4f410184e10d35e5e # Parent 55adff8105464f6247983940ba109684d36b689d rust: bump to memmap2 0.5.3, micro-timer 0.4.0, and crossbeam-channel