[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

[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

[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 started warning

[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' position This bug

[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 'count

[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

[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

[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-demandimport.py

[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

[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

[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
for 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

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

[PATCH stable] rust: relax im-rc dependency to allow minor updates

2022-05-24 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1653395384 -7200 # Tue May 24 14:29:44 2022 +0200 # Branch stable # Node ID 32de89308ead51d42d631c208ab17c866218e1c5 # Parent 1d257c4c15683ee998edcc7dd6caf5a4cb52c820 rust: relax im-rc dependency to allow minor updates This "

[PATCH stable] docs: use proper rst markup for preformatted blocks

2022-05-03 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1651574481 -7200 # Tue May 03 12:41:21 2022 +0200 # Branch stable # Node ID 1d257c4c15683ee998edcc7dd6caf5a4cb52c820 # Parent f2ef6a4f918f59f2ff01e5d4dc01c94ea35bd32f docs: use proper rst markup for preformatted blocks The multiple lines

[PATCH stable, v2] doc: inspect.getargspec has been removed in Python 3.11

2022-02-07 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1644245153 -3600 # Mon Feb 07 15:45:53 2022 +0100 # Branch stable # Node ID 937db8e65dd5614cc4595cced61f2e21026d3be3 # Parent 01fde63b4eded708802bfd0d0d4cb4ecc5ff6e1c doc: inspect.getargspec has been removed in Python 3.11 Fixed by dropping

[PATCH stable] doc: inspect.getargspec has been removed in Python 3.11

2022-02-05 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1644066813 -3600 # Sat Feb 05 14:13:33 2022 +0100 # Branch stable # Node ID e3c50cc1facafbd13120b7693155add1af9f94ed # Parent 01fde63b4eded708802bfd0d0d4cb4ecc5ff6e1c doc: inspect.getargspec has been removed in Python 3.11 Fix problem left

[PATCH stable] cext: fix Python 3.11 compatibility - Py_SIZE is not an lvalue (issue6610)

2021-11-18 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1637235097 -3600 # Thu Nov 18 12:31:37 2021 +0100 # Branch stable # Node ID 9c41494c5dd2fa8816bc7b70e76b28c4d3941af0 # Parent 6e576e4665f43101ef9bb98b0f5234f85c5db2ea cext: fix Python 3.11 compatibility - Py_SIZE is not an lvalue (issue6610

Re: [PATCH 1 of 2] bugzilla: fix reporting of exceptions with py3

2020-12-07 Thread Mads Kiilerich
These patches could be considered for stable. They could qualify, as they fix some obvious blockers and make the bugzilla extension work better with py3. But there seems to be many other problems with bugzilla extension on py3. The extension is messing with internals of xmlrpclib, and the py3

[PATCH 2 of 2] bugzilla: pass the url to xmlrpclib.ServerProxy as str

2020-12-07 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1607032141 -3600 # Thu Dec 03 22:49:01 2020 +0100 # Branch stable # Node ID 6473ac822f918193dd39f43f054695d5d6321736 # Parent a141d1da33433998590be226b6788fb53e8c90e0 bugzilla: pass the url to xmlrpclib.ServerProxy as str diff --git a/hgext

[PATCH 1 of 2] bugzilla: fix reporting of exceptions with py3

2020-12-07 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1607032141 -3600 # Thu Dec 03 22:49:01 2020 +0100 # Branch stable # Node ID a141d1da33433998590be226b6788fb53e8c90e0 # Parent dadbd01f939379a2eea76eab313868fcde48138a bugzilla: fix reporting of exceptions with py3 diff --git a/hgext

[PATCH 8 of 8 stable] packaging: update built-in Fedora support to Fedora 31

2019-11-01 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1572616448 -3600 # Fri Nov 01 14:54:08 2019 +0100 # Branch stable # Node ID 86a486daf51bb3a38623ee0635d81aec5c7008b0 # Parent 8c57b4472c1acd7bf11f83dccb29c6cc064455a0 packaging: update built-in Fedora support to Fedora 31 This is now quite

[PATCH 7 of 8 stable] packaging: refactor "fedora29" target to a single more generic "fedora" target

2019-11-01 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1572612704 -3600 # Fri Nov 01 13:51:44 2019 +0100 # Branch stable # Node ID 8c57b4472c1acd7bf11f83dccb29c6cc064455a0 # Parent 0b31ec6e6e7e815a75dc465e133043582b3e4cb7 packaging: refactor "fedora29" target to a single more gener

[PATCH 6 of 8 stable] packaging: make dockerrpm fedora target more generic

2019-11-01 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1572618554 -3600 # Fri Nov 01 15:29:14 2019 +0100 # Branch stable # Node ID 0b31ec6e6e7e815a75dc465e133043582b3e4cb7 # Parent dd589d02eba31ae40369d24bf3620863b4c86008 packaging: make dockerrpm fedora target more generic Fedora moves fast

[PATCH 5 of 8 stable] packaging: use "python3" for fedora29 ... and as buildrpm default

2019-11-01 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1572609562 -3600 # Fri Nov 01 12:59:22 2019 +0100 # Branch stable # Node ID dd589d02eba31ae40369d24bf3620863b4c86008 # Parent 27f849825e3a2fe7bd08a79659cfddaa95851ff9 packaging: use "python3" for fedora29 ... and as buildrpm defau

[PATCH 4 of 8 stable] packaging: use "--python python" for centos7 to avoid explicit "python2"

2019-11-01 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1572608858 -3600 # Fri Nov 01 12:47:38 2019 +0100 # Branch stable # Node ID 27f849825e3a2fe7bd08a79659cfddaa95851ff9 # Parent 0039dc1d76f454f86a9cbfb9064ca6b3cac664d6 packaging: use "--python python" for centos7 to avoid explici

[PATCH 3 of 8 stable] packaging: fix docker-centos5 - use pythonexe and set to "python" as before

2019-11-01 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1572608048 -3600 # Fri Nov 01 12:34:08 2019 +0100 # Branch stable # Node ID 0039dc1d76f454f86a9cbfb9064ca6b3cac664d6 # Parent b6c904e28f35efa5fcb6162a72e4acb19899f183 packaging: fix docker-centos5 - use pythonexe and set to "p

[PATCH 2 of 8 stable] packaging: move dockerrpm output directory creation to dockerrpm

2019-11-01 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1572607097 -3600 # Fri Nov 01 12:18:17 2019 +0100 # Branch stable # Node ID b6c904e28f35efa5fcb6162a72e4acb19899f183 # Parent a29e42f5492266b779ab24ac4496211c947c6601 packaging: move dockerrpm output directory creation to dockerrpm Avoid

[PATCH 1 of 8 stable] packaging: drop "support" for unsupported Fedora versions

2019-11-01 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1572519191 -3600 # Thu Oct 31 11:53:11 2019 +0100 # Branch stable # Node ID a29e42f5492266b779ab24ac4496211c947c6601 # Parent fdc3af52305b805863d0178b9e8c7150b2495479 packaging: drop "support" for unsupported Fedora versions Fed

Re: [PATCH 4 of 7 stable] packaging: introduce generic local rpm build target using python3

2019-10-31 Thread Mads Kiilerich
Actually ... testing shows so many small differences between versions that break something. Even the very first patch in series seems to break docker-centos5. Pleasedrop everything except the last 3 trivial patches (hgweb.wsgi, "tested on", and whitespace). I will resend. /Mads

Re: [PATCH 4 of 7 stable] packaging: introduce generic local rpm build target using python3

2019-10-31 Thread Mads Kiilerich
On 10/28/19 12:37 AM, Mads Kiilerich wrote: packaging: introduce generic local rpm build target using python3 I realize this change is bad. It has not been pushed yet - please drop it. The rest of the series still looks good. /Mads ___ Mercurial

Re: [PATCH 7 of 7 stable] packaging: fix buildrpm whitespace

2019-10-30 Thread Mads Kiilerich
On 10/30/19 9:14 PM, Augie Fackler wrote: On Mon, Oct 28, 2019 at 12:37:15AM +0100, Mads Kiilerich wrote: # HG changeset patch # User Mads Kiilerich # Date 1572203819 -3600 # Sun Oct 27 20:16:59 2019 +0100 # Branch stable # Node ID c84f1465c44ebc539b803b876206712e0ebd78b4 # Parent

Re: [PATCH 3 of 7 stable] packaging: introduce Python3 support as buildrpm --python3

2019-10-27 Thread Mads Kiilerich
Some of the changes in this series can perhaps wait, but it could perhaps also be nice to take it step further and match how deb packaging already moved everything to py3 ... /Mads ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org

[PATCH 6 of 7 stable] packaging: drop outdated buildrpm "tested on" comment

2019-10-27 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1572203798 -3600 # Sun Oct 27 20:16:38 2019 +0100 # Branch stable # Node ID 8c18adcd0177f3ca35f7f20f52f27f5a13ac9f90 # Parent 066475204d43572137083c64a02a813e1d78ac5a packaging: drop outdated buildrpm "tested on" comment Packagi

[PATCH 5 of 7 stable] packaging: also include hgweb.wsgi in rpms

2019-10-27 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1572218982 -3600 # Mon Oct 28 00:29:42 2019 +0100 # Branch stable # Node ID 066475204d43572137083c64a02a813e1d78ac5a # Parent 467d582886f688e01fe59b1d6f2de244d7be1458 packaging: also include hgweb.wsgi in rpms diff --git a/contrib/packaging

[PATCH 3 of 7 stable] packaging: introduce Python3 support as buildrpm --python3

2019-10-27 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1572208106 -3600 # Sun Oct 27 21:28:26 2019 +0100 # Branch stable # Node ID 32dbdaffb2ae030119890e05b87c4677706e7c6a # Parent 6ce451ed79a3132bb6390210ca460a106d40b6db packaging: introduce Python3 support as buildrpm --python3 Just overrule

[PATCH 7 of 7 stable] packaging: fix buildrpm whitespace

2019-10-27 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1572203819 -3600 # Sun Oct 27 20:16:59 2019 +0100 # Branch stable # Node ID c84f1465c44ebc539b803b876206712e0ebd78b4 # Parent 8c18adcd0177f3ca35f7f20f52f27f5a13ac9f90 packaging: fix buildrpm whitespace diff --git a/contrib/packaging

[PATCH 4 of 7 stable] packaging: introduce generic local rpm build target using python3

2019-10-27 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1572198921 -3600 # Sun Oct 27 18:55:21 2019 +0100 # Branch stable # Node ID 467d582886f688e01fe59b1d6f2de244d7be1458 # Parent 32dbdaffb2ae030119890e05b87c4677706e7c6a packaging: introduce generic local rpm build target using python3

[PATCH 2 of 7 stable] packaging: be explicit about Python version in rpm spec

2019-10-27 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1572208821 -3600 # Sun Oct 27 21:40:21 2019 +0100 # Branch stable # Node ID 6ce451ed79a3132bb6390210ca460a106d40b6db # Parent 496bbefb8fa0f24c789ae98f0b37e98046acb83c packaging: be explicit about Python version in rpm spec Fedora 31 has

[PATCH 1 of 7 stable] packaging: make python snippets in rpm building python3 compatible

2019-10-27 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1572203853 -3600 # Sun Oct 27 20:17:33 2019 +0100 # Branch stable # Node ID 496bbefb8fa0f24c789ae98f0b37e98046acb83c # Parent a2ff3aff81d244685cf2f25a1ee92f379d1d115c packaging: make python snippets in rpm building python3 compatible Fedora

Re: [PATCH RFC] changegroup: leave out all parent file revisions when creating bundles

2019-10-14 Thread Mads Kiilerich
On 10/11/19 7:57 PM, Mads Kiilerich wrote: # HG changeset patch # User Mads Kiilerich # Date 1570804632 -7200 # Fri Oct 11 16:37:12 2019 +0200 # Node ID 72d12ee773795edc163f73b9160e5d29022878dd # Parent 52781d57313d512efb7150603104bea3ca11d0eb changegroup: leave out all parent file

[PATCH 8 of 8] eol: don't fallback to use .hgeol from tip (BC)

2019-10-13 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1570925426 -7200 # Sun Oct 13 02:10:26 2019 +0200 # Node ID 74c8ac8124723f06a612ff560403d4bd288ec5f4 # Parent 68dde01bb05c782d484d96e424512b89e0673bec eol: don't fallback to use .hgeol from tip (BC) If no .hgeol were found in the current

[PATCH 7 of 8] eol: tweak test-eol-clone.t with better descriptions and logging

2019-10-13 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1571010144 -7200 # Mon Oct 14 01:42:24 2019 +0200 # Node ID 68dde01bb05c782d484d96e424512b89e0673bec # Parent 950c89a71e9837dc81da80ed34eee9b602a808d9 eol: tweak test-eol-clone.t with better descriptions and logging Expose impact of changes

[PATCH 6 of 8] eol: fix update - don't use and apply removed .hgeol patterns

2019-10-13 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1570925707 -7200 # Sun Oct 13 02:15:07 2019 +0200 # Node ID 950c89a71e9837dc81da80ed34eee9b602a808d9 # Parent 844fa54a1ffbc052fbcd76f103b3db6b02a84690 eol: fix update - don't use and apply removed .hgeol patterns 'hg up -C' to revisions

[PATCH 4 of 8] eol: update isbinary filter to work without compat wrapper

2019-10-13 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1571009598 -7200 # Mon Oct 14 01:33:18 2019 +0200 # Node ID 5670699747c92d725927e25754817d5aa498d728 # Parent 1e663f4a658dbf6669c9bfd53918bf1daa734dc6 eol: update isbinary filter to work without compat wrapper diff --git a/hgext/eol.py b

[PATCH 3 of 8] localrepo: fix variable binding in handling of old filters

2019-10-13 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1570925119 -7200 # Sun Oct 13 02:05:19 2019 +0200 # Node ID 1e663f4a658dbf6669c9bfd53918bf1daa734dc6 # Parent 2b91375a812ce3c694efa35a98a109387962 localrepo: fix variable binding in handling of old filters The lambda was referencing

[PATCH 5 of 8] eol: cache needs update, also if it has same timestamp as the source

2019-10-13 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1570925493 -7200 # Sun Oct 13 02:11:33 2019 +0200 # Node ID 844fa54a1ffbc052fbcd76f103b3db6b02a84690 # Parent 5670699747c92d725927e25754817d5aa498d728 eol: cache needs update, also if it has same timestamp as the source Ignoring same

[PATCH 2 of 8] localrepo: debug log of filter name when filtering through a function

2019-10-13 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1570970400 -7200 # Sun Oct 13 14:40:00 2019 +0200 # Node ID 2b91375a812ce3c694efa35a98a109387962 # Parent 57f88532f7005eeb13cb06418ae3a3b156085adf localrepo: debug log of filter name when filtering through a function diff --git

[PATCH 1 of 8] eol: test-eol-update.t coverage around update --clean using filters ... badly

2019-10-13 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1571004565 -7200 # Mon Oct 14 00:09:25 2019 +0200 # Node ID 57f88532f7005eeb13cb06418ae3a3b156085adf # Parent 52781d57313d512efb7150603104bea3ca11d0eb eol: test-eol-update.t coverage around update --clean using filters ... badly

[PATCH RFC] changegroup: leave out all parent file revisions when creating bundles

2019-10-11 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1570804632 -7200 # Fri Oct 11 16:37:12 2019 +0200 # Node ID 72d12ee773795edc163f73b9160e5d29022878dd # Parent 52781d57313d512efb7150603104bea3ca11d0eb changegroup: leave out all parent file revisions when creating bundles When creating

Re: [PATCH v2] graft: introduce --base option for using custom base revision while merging

2018-11-21 Thread Mads Kiilerich
On 10/23/18 4:59 PM, Augie Fackler wrote: On Oct 14, 2018, at 11:15, Mads Kiilerich wrote: # HG changeset patch # User Mads Kiilerich # Date 1539529698 -7200 # Sun Oct 14 17:08:18 2018 +0200 # Node ID 258029c642d97ef663396476c63ce34dbef89b13 # Parent

Extra files in changelog "changed files" and bundles

2018-11-21 Thread Mads Kiilerich
Hi I see some odd and potentially related behaviour: The files list in changelog entries for merges sometimes contain files that didn't change, but where the manifest use the same filelog entry as one of the parents. It seems to often be related to merge of file moves. Also, sometimes there

[PATCH v2] graft: introduce --base option for using custom base revision while merging

2018-10-14 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1539529698 -7200 # Sun Oct 14 17:08:18 2018 +0200 # Node ID 258029c642d97ef663396476c63ce34dbef89b13 # Parent 38ac525b44c93fcadb3680d4ded56f1e5a0029b2 graft: introduce --base option for using custom base revision while merging The graft

[PATCH] graft: introduce --base option for using custom base revision for merge

2018-10-13 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich # Date 1539424786 -7200 # Sat Oct 13 11:59:46 2018 +0200 # Node ID 167e7e7bbead47fadfe4072143cc53b409e3d8b9 # Parent 38ac525b44c93fcadb3680d4ded56f1e5a0029b2 graft: introduce --base option for using custom base revision for merge The graft command

D785: context: also consider path conflicts when clearing unknown files

2017-10-01 Thread kiilerix (Mads Kiilerich)
kiilerix added inline comments. INLINE COMMENTS > test-pathconflicts-basic.t:38 >1 files updated, 0 files merged, 1 files removed, 0 files unresolved > + $ rm a~853701544ac3+ > I don't know about these `~hash` files, but including the `+` in the name definitely seems wrong. REPOSITORY

D778: merge: backup conflicting directories when getting files

2017-10-01 Thread kiilerix (Mads Kiilerich)
kiilerix added inline comments. INLINE COMMENTS > merge.py:1175 > +absf = repo.wjoin(p) > +break > orig = scmutil.origpath(ui, repo, absf) This seems quite a bit slower. But I guess it never will happen in tight loops? If

D680: scmutil: handle conflicting files and dirs in origbackuppath

2017-10-01 Thread kiilerix (Mads Kiilerich)
kiilerix added a comment. I am concerned that this seems to rely even more on not having conflicts inside origbackuppath from files/dirs with same name but in different directories. If we have a backup file handling, it must be 100% reliable. That seems to be what this series is trying to

[PATCH 1 of 2 stable] mq: test coverage of how [diff] configuration influence can break mq patches

2017-09-10 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich <m...@kiilerich.com> # Date 1505083342 -7200 # Mon Sep 11 00:42:22 2017 +0200 # Branch stable # Node ID e05e50fbdeaf7eb52a2936e1dfe98643d68c334e # Parent 3c3066367d72344935aabf9606a5b40e9950b5e7 mq: test coverage of how [diff] configu

[PATCH 2 of 2 stable] mq: create non-lossy patches, also with custom global diff configuration

2017-09-10 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich <m...@kiilerich.com> # Date 1505083344 -7200 # Mon Sep 11 00:42:24 2017 +0200 # Branch stable # Node ID 987a85c42b08ab2a82cce39b004e00b708320d0e # Parent e05e50fbdeaf7eb52a2936e1dfe98643d68c334e mq: create non-lossy patches, also with custom

Re: [PATCH 2 of 6 stable] mq: create non-lossy patches, also with [diff] nobinary=True

2017-06-18 Thread Mads Kiilerich
On 06/18/2017 09:03 AM, Yuya Nishihara wrote: The direction seems good, but can't we use patchmod.difffeatureopts() ? Right, thanks. Didn't know about that one. /Mads ___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org

[PATCH 1 of 6 stable] mq: test coverage of how [diff] configuration influence and break mq patches

2017-06-17 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich <m...@kiilerich.com> # Date 1497727704 -7200 # Sat Jun 17 21:28:24 2017 +0200 # Branch stable # Node ID 1968bc846c16d0cf59a573daf879bb842daaf7f1 # Parent d3ab31bf9c0e9cecef77f18d9648716be5fcfdb8 mq: test coverage of how [diff] configu

[PATCH 2 of 6 stable] mq: create non-lossy patches, also with [diff] nobinary=True

2017-06-17 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich <m...@kiilerich.com> # Date 1497727704 -7200 # Sat Jun 17 21:28:24 2017 +0200 # Branch stable # Node ID 2dae66ed58c0e2440a344ab8de645436a4c1f1a6 # Parent 1968bc846c16d0cf59a573daf879bb842daaf7f1 mq: create non-lossy patches, also with

[PATCH 5 of 6 stable] mq: don't lose whitespace changes with [diff] ignorewsamount=True

2017-06-17 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich <m...@kiilerich.com> # Date 1497727704 -7200 # Sat Jun 17 21:28:24 2017 +0200 # Branch stable # Node ID feb176a4bd5186488abb27ed9ed4d5fcd9df6f12 # Parent 5dfc12c8d1fa53baf7b9d0099bbac1e05b90f75f mq: don't lose whitespace changes with

[PATCH 6 of 6 stable] mq: don't lose whitespace changes with [diff] ignoreblanklines=True

2017-06-17 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich <m...@kiilerich.com> # Date 1497727704 -7200 # Sat Jun 17 21:28:24 2017 +0200 # Branch stable # Node ID 863bb364f8201dda46c6a3d51fb57bbbdc7cb69b # Parent feb176a4bd5186488abb27ed9ed4d5fcd9df6f12 mq: don't lose whitespace changes with

[PATCH 3 of 6 stable] mq: create patches with a/b prefix, also with [diff] noprefix=True

2017-06-17 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich <m...@kiilerich.com> # Date 1497727704 -7200 # Sat Jun 17 21:28:24 2017 +0200 # Branch stable # Node ID e086df12576d6829b61d760636af2a189c385136 # Parent 2dae66ed58c0e2440a344ab8de645436a4c1f1a6 mq: create patches with a/b prefix, also with

[PATCH 4 of 6 stable] mq: don't lose whitespace changes with [diff] ignorews=True

2017-06-17 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich <m...@kiilerich.com> # Date 1497727704 -7200 # Sat Jun 17 21:28:24 2017 +0200 # Branch stable # Node ID 5dfc12c8d1fa53baf7b9d0099bbac1e05b90f75f # Parent e086df12576d6829b61d760636af2a189c385136 mq: don't lose whitespace changes with [diff] ig

[PATCH 1 of 2 stable v2] graft: test coverage of grafts and how merges can break duplicate detection

2017-05-11 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich <mad...@unity3d.com> # Date 1494281490 -7200 # Tue May 09 00:11:30 2017 +0200 # Branch stable # Node ID 6710017995b4e8b361d6ad5b897ff7d0cc658285 # Parent 247bb7a2c492d8a946cc7ed61a627d53566b7c16 graft: test coverage of grafts and how merg

[PATCH 2 of 2 stable v2] graft: fix graft across merges of duplicates of grafted changes

2017-05-11 Thread Mads Kiilerich
# HG changeset patch # User Mads Kiilerich <mad...@unity3d.com> # Date 1494515920 -7200 # Thu May 11 17:18:40 2017 +0200 # Branch stable # Node ID cf6482170698ea9cd590f6e72745348bef5703b4 # Parent 6710017995b4e8b361d6ad5b897ff7d0cc658285 graft: fix graft across merges of dupl

Re: [PATCH 2 of 2 stable] graft: fix graft across merges of duplicates of grafted changes

2017-05-11 Thread Mads Kiilerich
On 05/10/2017 03:42 PM, Yuya Nishihara wrote: On Tue, 09 May 2017 00:45:02 +0200, Mads Kiilerich wrote: # HG changeset patch # User Mads Kiilerich <mad...@unity3d.com> # Date 1494283376 -7200 # Tue May 09 00:42:56 2017 +0200 # Branch stable # N

  1   2   >