Line buffering not supported in binary mode on Python 3

2019-11-16 Thread Manuel Jacob
Python 3’s IO implementation doesn’t support line buffering in binary mode. On Python 3.8, this results in a RuntimeWarning, breaking test-ssh-proto.t. Here are the tracebacks for the two occurences of the warning: Traceback (most recent call last): File "/home/manu/vcs/hg/hg", line 36,

[PATCH stable] cffi: fix build on Python 3

2019-11-17 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1574016901 -3600 # Sun Nov 17 19:55:01 2019 +0100 # Branch stable # Node ID ef297356c8605f036417f7b839c87ba8f9ffad07 # Parent 856cce0c255cc6ffbe164764cc152e3011c59fd7 cffi: fix build on Python 3 CFFI expects the arguments to be of type str

Re: Line buffering not supported in binary mode on Python 3

2019-11-19 Thread Manuel Jacob
On 2019-11-19 05:22, Gregory Szorc wrote: On Sat, Nov 16, 2019 at 4:26 PM Manuel Jacob wrote: Python 3’s IO implementation doesn’t support line buffering in binary mode. On Python 3.8, this results in a RuntimeWarning, breaking test-ssh-proto.t. Here are the tracebacks for the two occurences

[PATCH stable] py3: use pycompat.bytestr() instead of pycompat.sysstr()

2019-11-19 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1574161183 -3600 # Tue Nov 19 11:59:43 2019 +0100 # Branch stable # Node ID c5bcd946a34b77d7680d62ea329542a06d48b5df # Parent 0f82b29f7494399c93920543ce65bf9258459cd5 py3: use pycompat.bytestr() instead of pycompat.sysstr() pycompat.sysstr

[PATCH stable] branch: make --force work even when specifying revs

2020-03-01 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1583087963 -3600 # Sun Mar 01 19:39:23 2020 +0100 # Branch stable # Node ID 1744b28471b78764a1a75490c24471140681e680 # Parent bb58931d0c4f8e3b28ad6764fb8d6b66757f9577 branch: make --force work even when specifying revs The `hg branch` command

[PATCH] tests: avoid implicit conversion of str to unicode

2020-03-06 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1583428219 -3600 # Thu Mar 05 18:10:19 2020 +0100 # Node ID 14e2295705434054ed9c697143bb7207ebd1777d # Parent 4cabeea6d21456ae4d560ef72adffe11d77d5387 # EXP-Topic remove-implicit-str-conversions tests: avoid implicit conversion of str to

[PATCH] tests: avoid implicit conversion of str to unicode

2020-03-06 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1583428761 -3600 # Thu Mar 05 18:19:21 2020 +0100 # Node ID b450d641c374112d9c9179a9009d15e94d45ed86 # Parent 14e2295705434054ed9c697143bb7207ebd1777d # EXP-Topic remove-implicit-str-conversions tests: avoid implicit conversion of str to

[PATCH 2 of 2] tests: avoid implicit conversion of str to unicode

2020-03-06 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1583488364 -3600 # Fri Mar 06 10:52:44 2020 +0100 # Node ID b67ead721ec5c9c39ba7e41d2687848408c33321 # Parent 53c5a127b144d4fea08ae466cd9e46a56095b288 # EXP-Topic remove-implicit-str-conversions tests: avoid implicit conversion of str to

[PATCH 1 of 2] tests: rename _bytespath() to _sys2bytes() and _strpath() to _sys2str()

2020-03-06 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1583484657 -3600 # Fri Mar 06 09:50:57 2020 +0100 # Node ID 53c5a127b144d4fea08ae466cd9e46a56095b288 # Parent b450d641c374112d9c9179a9009d15e94d45ed86 # EXP-Topic remove-implicit-str-conversions tests: rename _bytespath() to _sys2bytes() and

[PATCH] tests: use pyflakes module instead of pyflakes executable

2020-03-06 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1583532298 -3600 # Fri Mar 06 23:04:58 2020 +0100 # Node ID 186c13bbb49fd4de4fd2c9983c3daf8fede5b177 # Parent 4ce2330f2d0b9690cc852602a9e055491a408c03 tests: use pyflakes module instead of pyflakes executable This results in that the pyflakes

[PATCH stable] rebase: add missing dashes in help text

2019-02-26 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1550952807 -3600 # Sat Feb 23 21:13:27 2019 +0100 # Branch stable # Node ID 3db4cf0024af5b880da998e8800c0eb2732e6f5b # Parent a62690659d6bbe5abd4bb1a45248b0c760cb9188 # EXP-Topic rebase-help-text-typo rebase: add missing dashes in help text

Mercurial mini-sprint in Leipzig

2019-07-23 Thread Manuel Jacob
Hi, In addition to the sprints that are hosted about every two minor releases, the Mercurial community organizes so called "mini-sprints" in irregular intervals. I attended the mini-sprint in April in Paris and I liked the experience, so I offered to organize one in Leipzig. This email is t

Improving file name encoding support on Windows

2019-08-06 Thread Manuel Jacob
Recently I sent a mail to the Mercurial (user mailing list) to ask how to have filename encoding interoperability between Linux and Windows. It seems like this is currently not easily achievable. I’ve seen the Windows UTF-8 plan in the Wiki, but it doesn’t seem to be implemented, so I decided

Mercurial mini-sprint in Leipzig (Germany) from September 5th to 8th

2019-08-22 Thread Manuel Jacob
Hi, In addition to the sprints that are hosted about every two minor releases, the Mercurial community organizes so called "mini-sprints" in irregular intervals. What's the goal of the mini-sprint? It's not only an opportunity for existing developers to collaborate in person. Even more imp

Behavior of various history editing commands regarding empty changesets

2019-10-21 Thread Manuel Jacob
Various history editing commands (e.g. rebase and absorb, but not amend) drop a changeset if it was or becomes empty. It definitively makes sense for some workflows, but not so much for many workflows enabled by changeset evolution, where each changeset is considered as a patch instead of just

Re: development heads up: push/pull improvements

2021-04-12 Thread Manuel Jacob
They are a couple of check that does not have there own flag yet and are only covered by `--force`. For example to push new heads. I know that Manuel Jacob had idea about how to express these flag, so I CCed him on this email. The basic idea is simply to have a flag for each check to turn it o

Re: development heads up: push/pull improvements

2021-04-16 Thread Manuel Jacob
On 13/04/2021 12.16, Pierre-Yves David wrote: On 4/13/21 3:03 AM, Manuel Jacob wrote: On 17/03/2021 16.05, Pierre-Yves David wrote: Hello everyone, I have been working on improvements to push and pull. The core goal can be summarized as: * make it simpler to push/pull to multiple

Re: [PATCH] tests: use pyflakes module instead of pyflakes executable

2020-03-08 Thread Manuel Jacob
On 2020-03-08 06:24, Yuya Nishihara wrote: On Fri, 06 Mar 2020 23:05:06 +0100, Manuel Jacob wrote: # HG changeset patch # User Manuel Jacob # Date 1583532298 -3600 # Fri Mar 06 23:04:58 2020 +0100 # Node ID 186c13bbb49fd4de4fd2c9983c3daf8fede5b177 # Parent

[PATCH stable] tests: fix isinstance test of wrong variable

2020-03-08 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1583712719 -3600 # Mon Mar 09 01:11:59 2020 +0100 # Node ID 1320093a99dc1a1ed796b230dd2f1b87ea045eac # Parent ae4272a4f77c327ff08d48d50460d573fe003757 # EXP-Topic remove-implicit-str-conversions tests: fix isinstance test of wrong variable

[PATCH] tests: avoid implicit bytes -> unicode -> bytes roundtrip on Python 2

2020-03-08 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1583486858 -3600 # Fri Mar 06 10:27:38 2020 +0100 # Node ID ae4272a4f77c327ff08d48d50460d573fe003757 # Parent 2b5c4788d7f0aaf56775c0a2a032727255367c6c # EXP-Topic remove-implicit-str-conversions tests: avoid implicit bytes -> unicode ->

[PATCH] tests: use native string type for parsed hghave log lines

2020-03-08 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1583727542 -3600 # Mon Mar 09 05:19:02 2020 +0100 # Node ID 0fda94caf796adac51a105ae2f39c057b37cf183 # Parent 1320093a99dc1a1ed796b230dd2f1b87ea045eac # EXP-Topic remove-implicit-str-conversions tests: use native string type for parsed hghave

Re: Mercurial shirts

2020-03-09 Thread Manuel Jacob
On 2020-03-09 09:52, Raphaël Gomès wrote: Hello all, What do you think about printing some amount of Mercurial shirts to distribute at sprints and events for contributors and sympathizers? The 5.4 sprint is jeopardized at best, but this would be useful for later events. I personally had no Mercu

[PATCH] tests: check availability of pyflakes by trying to import pyflakes module

2020-03-10 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1583901662 -3600 # Wed Mar 11 05:41:02 2020 +0100 # Node ID 14cffca0d2f0b0818ac98eefc432ba22b3d6e364 # Parent a08bbdf839ae08ff69c6f99a289ee85b3a012f03 tests: check availability of pyflakes by trying to import pyflakes module Since

[PATCH stable] demandimport: fix compatibility with meta path finders w/o find_spec() method

2020-05-11 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1589238192 -7200 # Tue May 12 01:03:12 2020 +0200 # Branch stable # Node ID fb5fffb2dbddef1ba6dd07cb0f9a95637d7802ad # Parent a50f33f1ff24466d6d721685cc65a732cb4c522c demandimport: fix compatibility with meta path finders w/o find_spec

[PATCH stable] cext: back out ec3c06a1c554 (use modern buffer protocol in mpatch_flist())

2020-05-13 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1589415041 -7200 # Thu May 14 02:10:41 2020 +0200 # Branch stable # Node ID fdbe20620a267f2cc8fb01b60a293117f00cebdb # Parent cf3e07d7648a4371ce584d15dd692e7a6845792f cext: back out ec3c06a1c554 (use modern buffer protocol in mpatch_flist

Re: [PATCH stable] cext: back out ec3c06a1c554 (use modern buffer protocol in mpatch_flist())

2020-05-14 Thread Manuel Jacob
On 2020-05-14 21:17, Gregory Szorc wrote: On Thu, May 14, 2020 at 12:15 PM Gregory Szorc wrote: On Wed, May 13, 2020 at 5:15 PM Manuel Jacob wrote: # HG changeset patch # User Manuel Jacob # Date 1589415041 -7200 # Thu May 14 02:10:41 2020 +0200 # Branch stable # Node ID

Raise minimum Python version?

2020-05-19 Thread Manuel Jacob
Hi, The issue came up in a reply to a patch I've sent a few days ago. I'm sending a new mail to discuss this topic more generally. Mercurial is not usable on Python versions prior to 2.7.4. The issue was raised in https://www.mercurial-scm.org/pipermail/mercurial/2020-May/051937.html. I've

[PATCH stable] setup: raise minimum Python version to 2.7.4

2020-05-23 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1589496817 -7200 # Fri May 15 00:53:37 2020 +0200 # Branch stable # Node ID f1178237058e45f30c3418b7a6c1e9341d3e3e60 # Parent edffab2cf0ead5140fdaa391c1c827ddc53dfe35 # EXP-Topic minimum-python-2.7.4 setup: raise minimum Python version to

[PATCH 2 of 2] cleanup: eliminate procutil.quotecommand()

2020-05-28 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590717367 -7200 # Fri May 29 03:56:07 2020 +0200 # Node ID 34b43eef01ed4612512ce105ed2f85ce591fe005 # Parent 6c86927b3d35a364fdfba9a2e45bea64d1ba7cf6 # EXP-Topic minimum-python-2.7.4-cleanup cleanup: eliminate procutil.quotecommand() After

[PATCH 1 of 2] cleanup: remove compatibility code for Python < 2.7.1

2020-05-28 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590716588 -7200 # Fri May 29 03:43:08 2020 +0200 # Node ID 6c86927b3d35a364fdfba9a2e45bea64d1ba7cf6 # Parent 5d77f571a56371a8dd2ae309437985e8751d152b # EXP-Topic minimum-python-2.7.4-cleanup cleanup: remove compatibility code for Python

[PATCH] cleanup: remove compatibility code for Python < 2.7.4

2020-05-28 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590717976 -7200 # Fri May 29 04:06:16 2020 +0200 # Node ID bc05bbecf2c270b2b5533be84d1311840abcba00 # Parent 34b43eef01ed4612512ce105ed2f85ce591fe005 # EXP-Topic minimum-python-2.7.4-cleanup cleanup: remove compatibility code for Python

[PATCH 00 of 15] require modern SSL/TLS implementation

2020-05-29 Thread Manuel Jacob
___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

[PATCH 01 of 15] sslutil: set `_canloaddefaultcerts` to `True` if `ssl.SSLContext` is present

2020-05-29 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590803219 -7200 # Sat May 30 03:46:59 2020 +0200 # Node ID 45c87d05a2ba00d32181c94bf56d52f48f9c9f02 # Parent 3aed7d262bdfd08e8a5d356c8f5a90251bfc70b5 # EXP-Topic require_modern_ssl sslutil: set `_canloaddefaultcerts` to `True` if

[PATCH 02 of 15] setup: require a Python version with modern SSL features

2020-05-29 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590779246 -7200 # Fri May 29 21:07:26 2020 +0200 # Node ID c8a697e466dec7726cf0e5d30dafcc37f13196f0 # Parent 45c87d05a2ba00d32181c94bf56d52f48f9c9f02 # EXP-Topic require_modern_ssl setup: require a Python version with modern SSL features

[PATCH 03 of 15] sslutil: remove code checking for presence of ssl.SSLContext

2020-05-29 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590779902 -7200 # Fri May 29 21:18:22 2020 +0200 # Node ID 4b0fc7112e0c75ae290e9204bd9efdca841244df # Parent c8a697e466dec7726cf0e5d30dafcc37f13196f0 # EXP-Topic require_modern_ssl sslutil: remove code checking for presence of ssl.SSLContext

[PATCH 04 of 15] sslutil: remove comments referring to removed SSLContext emulation class

2020-05-29 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590784286 -7200 # Fri May 29 22:31:26 2020 +0200 # Node ID fa4460229a8d1a392564d0cbe78216760154822c # Parent 4b0fc7112e0c75ae290e9204bd9efdca841244df # EXP-Topic require_modern_ssl sslutil: remove comments referring to removed SSLContext

[PATCH 05 of 15] hgweb: avoid using `sslutil.modernssl`

2020-05-29 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590807553 -7200 # Sat May 30 04:59:13 2020 +0200 # Node ID f8ae379a8dcfebbec6cf6570d8d38fa1e3b6bcea # Parent fa4460229a8d1a392564d0cbe78216760154822c # EXP-Topic require_modern_ssl hgweb: avoid using `sslutil.modernssl` `sslutil.modernssl

[PATCH 07 of 15] tests: remove "defaultcacerts" check

2020-05-29 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590808082 -7200 # Sat May 30 05:08:02 2020 +0200 # Node ID 992db2b7bd11431df9145abc35dca2eba73b9972 # Parent 0f3d341877afb1bb05ec8abc5e4bbc5d318a6d41 # EXP-Topic require_modern_ssl tests: remove "defaultcacerts" check

[PATCH 06 of 15] sslutil: eliminate `modernssl` by constant-folding code using it

2020-05-29 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590780604 -7200 # Fri May 29 21:30:04 2020 +0200 # Node ID 0f3d341877afb1bb05ec8abc5e4bbc5d318a6d41 # Parent f8ae379a8dcfebbec6cf6570d8d38fa1e3b6bcea # EXP-Topic require_modern_ssl sslutil: eliminate `modernssl` by constant-folding code using

[PATCH 08 of 15] sslutil: eliminate `_canloaddefaultcerts` by constant-folding code using it

2020-05-29 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590801838 -7200 # Sat May 30 03:23:58 2020 +0200 # Node ID 9ae0e1b1a499dfce1807e3c9ec5c03714c6f154a # Parent 992db2b7bd11431df9145abc35dca2eba73b9972 # EXP-Topic require_modern_ssl sslutil: eliminate `_canloaddefaultcerts` by constant-folding

[PATCH 09 of 15] tests: remove "sslcontext" check

2020-05-29 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590809273 -7200 # Sat May 30 05:27:53 2020 +0200 # Node ID 13922e383d20ca51752a2c3bd16429a5b0e30397 # Parent 9ae0e1b1a499dfce1807e3c9ec5c03714c6f154a # EXP-Topic require_modern_ssl tests: remove "sslcontext" check Now that we r

[PATCH 10 of 15] sslutil: assert that the Python we run on supports TLS 1.1 and TLS 1.2

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590783568 -7200 # Fri May 29 22:19:28 2020 +0200 # Node ID 38f91fbf3f53237e4f5b7fd382f72cfab5e2c8fd # Parent 13922e383d20ca51752a2c3bd16429a5b0e30397 # EXP-Topic require_modern_ssl sslutil: assert that the Python we run on supports TLS 1.1

[PATCH 11 of 15] sslutil: remove comment referring to unsupported legacy stacks

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590785278 -7200 # Fri May 29 22:47:58 2020 +0200 # Node ID 34c4c1b13c793f5860c840043fbf8e4b2eb8a9a2 # Parent 38f91fbf3f53237e4f5b7fd382f72cfab5e2c8fd # EXP-Topic require_modern_ssl sslutil: remove comment referring to unsupported legacy

[PATCH 12 of 15] sslutil: simplify code for printing an error message when negotiation fails

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590800420 -7200 # Sat May 30 03:00:20 2020 +0200 # Node ID de89534c092f5d2e2eb8c7b21dcb81d83aa3 # Parent 34c4c1b13c793f5860c840043fbf8e4b2eb8a9a2 # EXP-Topic require_modern_ssl sslutil: simplify code for printing an error message when

[PATCH 13 of 15] sslutil: simplify code, now that `supportedprotocols` is constant

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590798598 -7200 # Sat May 30 02:29:58 2020 +0200 # Node ID e42ce24c506a9336dd6ecc8b4f83889580d8af6b # Parent de89534c092f5d2e2eb8c7b21dcb81d83aa3 # EXP-Topic require_modern_ssl sslutil: simplify code, now that `supportedprotocols` is

[PATCH 15 of 15] sslutil: remove fallback for `ssl` attributes that we can assume to be present

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590806514 -7200 # Sat May 30 04:41:54 2020 +0200 # Node ID c9b1893bc6f9e93599187d3f38c5fce282b045b8 # Parent 115c95a26b530486ebf9000ad5b7dc6a0c188e7a # EXP-Topic require_modern_ssl sslutil: remove fallback for `ssl` attributes that we can

[PATCH 14 of 15] tests: remove "tls1.2" check

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590816692 -7200 # Sat May 30 07:31:32 2020 +0200 # Node ID 115c95a26b530486ebf9000ad5b7dc6a0c188e7a # Parent e42ce24c506a9336dd6ecc8b4f83889580d8af6b # EXP-Topic require_modern_ssl tests: remove "tls1.2" check Now that we requir

[PATCH v2] setup: require a Python version with modern SSL features

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590779246 -7200 # Fri May 29 21:07:26 2020 +0200 # Node ID 0b77428d79bddca909ade8dcb59fb153f15db0d8 # Parent 45c87d05a2ba00d32181c94bf56d52f48f9c9f02 # EXP-Topic require_modern_ssl setup: require a Python version with modern SSL features

[PATCH v2] sslutil: remove fallback for `ssl` attributes that we can assume to be present

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590806514 -7200 # Sat May 30 04:41:54 2020 +0200 # Node ID 7a6519cba165ec9dced7465359d2937cc7587328 # Parent 7e15b535202e2ac21349cb5b66c3374e176d3bab # EXP-Topic require_modern_ssl sslutil: remove fallback for `ssl` attributes that we can

Re: [PATCH 05 of 15] hgweb: avoid using `sslutil.modernssl`

2020-05-30 Thread Manuel Jacob
On 2020-05-30 17:49, Gregory Szorc wrote: On Sat, May 30, 2020 at 6:25 AM Yuya Nishihara wrote: On Sat, 30 May 2020 07:52:17 +0200, Manuel Jacob wrote: > # HG changeset patch > # User Manuel Jacob > # Date 1590807553 -7200 > # Sat May 30 04:59:13 2020 +0200

Re: [PATCH 10 of 15] sslutil: assert that the Python we run on supports TLS 1.1 and TLS 1.2

2020-05-30 Thread Manuel Jacob
On 2020-05-30 17:54, Gregory Szorc wrote: On Sat, May 30, 2020 at 6:36 AM Yuya Nishihara wrote: On Sat, 30 May 2020 07:52:22 +0200, Manuel Jacob wrote: > # HG changeset patch > # User Manuel Jacob > # Date 1590783568 -7200 > # Fri May 29 22:19:28 2020 +0200

[PATCH] tests: stop checking for optional, now impossible output

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590858293 -7200 # Sat May 30 19:04:53 2020 +0200 # Node ID 70309bddd6a07a36583b54fef06591c212508990 # Parent 89f83e47e9c9ad53a04c8c829730f04d8275437e tests: stop checking for optional, now impossible output In 7dd63a8cb1ee, the code that

Re: [PATCH 08 of 15] sslutil: eliminate `_canloaddefaultcerts` by constant-folding code using it

2020-05-30 Thread Manuel Jacob
On 2020-05-30 18:11, Gregory Szorc wrote: On Fri, May 29, 2020 at 11:50 PM Manuel Jacob wrote: # HG changeset patch # User Manuel Jacob # Date 1590801838 -7200 # Sat May 30 03:23:58 2020 +0200 # Node ID 9ae0e1b1a499dfce1807e3c9ec5c03714c6f154a # Parent

Re: [PATCH 10 of 15] sslutil: assert that the Python we run on supports TLS 1.1 and TLS 1.2

2020-05-30 Thread Manuel Jacob
On 2020-05-30 19:10, Gregory Szorc wrote: On Sat, May 30, 2020 at 9:51 AM Manuel Jacob wrote: On 2020-05-30 17:54, Gregory Szorc wrote: > On Sat, May 30, 2020 at 6:36 AM Yuya Nishihara wrote: > >> On Sat, 30 May 2020 07:52:22 +0200, Manuel Jacob wrote: >> > # HG change

[PATCH v2] tests: stop checking for optional, now impossible output

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590858293 -7200 # Sat May 30 19:04:53 2020 +0200 # Node ID cb67261e7796a4b31597192a4f4cde83fb1bc406 # Parent 89f83e47e9c9ad53a04c8c829730f04d8275437e tests: stop checking for optional, now impossible output In 7dd63a8cb1ee, the code that

[PATCH 00 of 10 v2] require ssl module to support TLS 1.1 and 1.2

2020-05-30 Thread Manuel Jacob
___ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

[PATCH 01 of 10 v2] relnotes: note that we now require modern SSL/TLS features in Python

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590873537 -7200 # Sat May 30 23:18:57 2020 +0200 # Node ID d5441892eb22aa451bb479919e95f671e99857eb # Parent ed05581cec9e829ee4dd3daef8fc4fdd63f6ab54 # EXP-Topic require_modern_ssl relnotes: note that we now require modern SSL/TLS features in

[PATCH 02 of 10 v2] setup: require that Python supports TLS 1.1 and TLS 1.2

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590874939 -7200 # Sat May 30 23:42:19 2020 +0200 # Node ID b33cc1f796e9c3aa6df1e51d36f0b3c061dfee9e # Parent d5441892eb22aa451bb479919e95f671e99857eb # EXP-Topic require_modern_ssl setup: require that Python supports TLS 1.1 and TLS 1.2 This

[PATCH 03 of 10 v2] sslutil: convert check for TLS 1.1 and TLS 1.2 into assert

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590783568 -7200 # Fri May 29 22:19:28 2020 +0200 # Node ID 594ab49f13ab0caba9f4934803932cd9b37e96d1 # Parent b33cc1f796e9c3aa6df1e51d36f0b3c061dfee9e # EXP-Topic require_modern_ssl sslutil: convert check for TLS 1.1 and TLS 1.2 into assert

[PATCH 04 of 10 v2] sslutil: remove comment referring to unsupported legacy stacks

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590785278 -7200 # Fri May 29 22:47:58 2020 +0200 # Node ID 5d4b7c8aac2c8e7c5f981e9e9c30dc14f90d886f # Parent 594ab49f13ab0caba9f4934803932cd9b37e96d1 # EXP-Topic require_modern_ssl sslutil: remove comment referring to unsupported legacy

[PATCH 05 of 10 v2] sslutil: simplify code for printing an error message when negotiation fails

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590800420 -7200 # Sat May 30 03:00:20 2020 +0200 # Node ID bb58183ab539f542382b7f175377e8bd69cc452a # Parent 5d4b7c8aac2c8e7c5f981e9e9c30dc14f90d886f # EXP-Topic require_modern_ssl sslutil: simplify code for printing an error message when

[PATCH 06 of 10 v2] tests: stop checking for optional, now impossible output

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590877556 -7200 # Sun May 31 00:25:56 2020 +0200 # Node ID 0e08e9113869685dd452056179c05e51c467c348 # Parent bb58183ab539f542382b7f175377e8bd69cc452a # EXP-Topic require_modern_ssl tests: stop checking for optional, now impossible output The

[PATCH 07 of 10 v2] sslutil: simplify code, now that `supportedprotocols` is constant

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590798598 -7200 # Sat May 30 02:29:58 2020 +0200 # Node ID 10a6978ae2f7de160e1468e5c434421ada5f3567 # Parent 0e08e9113869685dd452056179c05e51c467c348 # EXP-Topic require_modern_ssl sslutil: simplify code, now that `supportedprotocols` is

[PATCH 09 of 10 v2] tests: remove "tls1.2" check

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590816692 -7200 # Sat May 30 07:31:32 2020 +0200 # Node ID 727c3b95f5ace64398c262b1093427d6d8a03815 # Parent 08796924bd51030b433408c755b1bd28d38393e8 # EXP-Topic require_modern_ssl tests: remove "tls1.2" check Now that we requir

[PATCH 08 of 10 v2] config: remove unused hostsecurity.disabletls10warning config

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590877849 -7200 # Sun May 31 00:30:49 2020 +0200 # Node ID 08796924bd51030b433408c755b1bd28d38393e8 # Parent 10a6978ae2f7de160e1468e5c434421ada5f3567 # EXP-Topic require_modern_ssl config: remove unused hostsecurity.disabletls10warning config

[PATCH 10 of 10 v2] sslutil: remove fallback for `ssl` attributes that we can assume to be present

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590806514 -7200 # Sat May 30 04:41:54 2020 +0200 # Node ID 15f8f319b5a41dbf68b2dfc308503128c37c61ab # Parent 727c3b95f5ace64398c262b1093427d6d8a03815 # EXP-Topic require_modern_ssl sslutil: remove fallback for `ssl` attributes that we can

[PATCH 1 of 2 v3] relnotes: note that we now require modern SSL/TLS features in Python

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590873537 -7200 # Sat May 30 23:18:57 2020 +0200 # Node ID d5441892eb22aa451bb479919e95f671e99857eb # Parent ed05581cec9e829ee4dd3daef8fc4fdd63f6ab54 # EXP-Topic require_modern_ssl relnotes: note that we now require modern SSL/TLS features in

[PATCH 2 of 2 v3] setup: require that Python has TLS 1.1 or TLS 1.2

2020-05-30 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590874939 -7200 # Sat May 30 23:42:19 2020 +0200 # Node ID 9590fdc527eb7c96c252af5b471da6f33bb1295f # Parent d5441892eb22aa451bb479919e95f671e99857eb # EXP-Topic require_modern_ssl setup: require that Python has TLS 1.1 or TLS 1.2 This

Re: [PATCH 03 of 10 v2] sslutil: convert check for TLS 1.1 and TLS 1.2 into assert

2020-05-30 Thread Manuel Jacob
On 2020-05-31 08:05, Yuya Nishihara wrote: On Sun, 31 May 2020 00:37:16 +0200, Manuel Jacob wrote: # HG changeset patch # User Manuel Jacob # Date 1590783568 -7200 # Fri May 29 22:19:28 2020 +0200 # Node ID 594ab49f13ab0caba9f4934803932cd9b37e96d1 # Parent

[PATCH v4] setup: require that Python has TLS 1.1 or TLS 1.2

2020-05-31 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590874939 -7200 # Sat May 30 23:42:19 2020 +0200 # Node ID 0b80baeded449c19f89d4b6cec2a00eec4d286a7 # Parent 61cdc8137d5326ed075b982693469a2134365ff5 # EXP-Topic require_modern_ssl setup: require that Python has TLS 1.1 or TLS 1.2 This

[PATCH 2 of 5] sslutil: fix names of variables containing minimum protocol strings

2020-05-31 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590914858 -7200 # Sun May 31 10:47:38 2020 +0200 # Node ID efea7f15c5d5e32f3a6be167c733581afc612b3c # Parent ce6f9d86860e841386d94f9434606ca96d426310 # EXP-Topic sslutil_cleanup sslutil: fix names of variables containing minimum protocol

[PATCH 1 of 5] sslutil: stop returning argument as third return value of protocolsettings()

2020-05-31 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590911745 -7200 # Sun May 31 09:55:45 2020 +0200 # Node ID ce6f9d86860e841386d94f9434606ca96d426310 # Parent 61cdc8137d5326ed075b982693469a2134365ff5 # EXP-Topic sslutil_cleanup sslutil: stop returning argument as third return value of

[PATCH 3 of 5] sslutil: add FIXME about supportedprotocols possibly containing too many items

2020-05-31 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590918063 -7200 # Sun May 31 11:41:03 2020 +0200 # Node ID 14fb5b19169473e9a14a5ad4371ca727cd8c8293 # Parent efea7f15c5d5e32f3a6be167c733581afc612b3c # EXP-Topic sslutil_cleanup sslutil: add FIXME about supportedprotocols possibly containing

[PATCH 4 of 5] sslutil: don't set minimum TLS version to 1.0 if 1.2 but not 1.1 is available

2020-05-31 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590916221 -7200 # Sun May 31 11:10:21 2020 +0200 # Node ID d950d0faa52d3db159147891e58f4488042d9afe # Parent 14fb5b19169473e9a14a5ad4371ca727cd8c8293 # EXP-Topic sslutil_cleanup sslutil: don't set minimum TLS version to 1.0 if 1.2 but no

[PATCH 5 of 5] sslutil: check for OpenSSL without TLS 1.0 support in one case

2020-05-31 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590919637 -7200 # Sun May 31 12:07:17 2020 +0200 # Node ID ccb1f10b9fd61d82a2227d648208465f16dccdf3 # Parent d950d0faa52d3db159147891e58f4488042d9afe # EXP-Topic sslutil_cleanup sslutil: check for OpenSSL without TLS 1.0 support in one case

Re: [PATCH 1 of 5] sslutil: stop returning argument as third return value of protocolsettings()

2020-05-31 Thread Manuel Jacob
I sent an intro mail to the patch series, noting that this series is independent of the patch raising required TLS version. However that one was rejected by the mailing list filter, so I'm sending out that information again, to avoid confusion. ___ M

[PATCH 1 of 8 v5] setup: require that Python has TLS 1.1 or TLS 1.2

2020-05-31 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590874939 -7200 # Sat May 30 23:42:19 2020 +0200 # Node ID 2d2497e32978bc17060f5142b45789b449e7d9d3 # Parent dd7c4a208a4ed6c798330a21b13a349a020c877d # EXP-Topic require_modern_ssl setup: require that Python has TLS 1.1 or TLS 1.2 This

[PATCH 2 of 8 v5] sslutil: remove comment referring to unsupported legacy stacks

2020-05-31 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590785278 -7200 # Fri May 29 22:47:58 2020 +0200 # Node ID 8ebbebfe6cefed68e01f237eac1dcdf6aa6f7fbc # Parent 2d2497e32978bc17060f5142b45789b449e7d9d3 # EXP-Topic require_modern_ssl sslutil: remove comment referring to unsupported legacy

[PATCH 3 of 8 v5] tests: stop checking for optional, now impossible output

2020-05-31 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590877556 -7200 # Sun May 31 00:25:56 2020 +0200 # Node ID e0d6fc43f3227a11934a69c8eff40d307a5ad697 # Parent 8ebbebfe6cefed68e01f237eac1dcdf6aa6f7fbc # EXP-Topic require_modern_ssl tests: stop checking for optional, now impossible output The

[PATCH 4 of 8 v5] sslutil: remove dead code (that downgraded default minimum TLS version)

2020-05-31 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590956135 -7200 # Sun May 31 22:15:35 2020 +0200 # Node ID ed90a9083487c637edb528826046f36646baf2a7 # Parent e0d6fc43f3227a11934a69c8eff40d307a5ad697 # EXP-Topic require_modern_ssl sslutil: remove dead code (that downgraded default minimum

[PATCH 5 of 8 v5] config: remove unused hostsecurity.disabletls10warning config

2020-05-31 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590877849 -7200 # Sun May 31 00:30:49 2020 +0200 # Node ID b014f68a7e5f4d3cf72ca6f5d50e3059d05e3ed3 # Parent ed90a9083487c637edb528826046f36646baf2a7 # EXP-Topic require_modern_ssl config: remove unused hostsecurity.disabletls10warning config

[PATCH 6 of 8 v5] sslutil: remove dead code (that failed if only TLS 1.0 is available)

2020-05-31 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590957109 -7200 # Sun May 31 22:31:49 2020 +0200 # Node ID 7576507bfe5ea28ab6d496d532bb9b453998ca35 # Parent b014f68a7e5f4d3cf72ca6f5d50e3059d05e3ed3 # EXP-Topic require_modern_ssl sslutil: remove dead code (that failed if only TLS 1.0 is

[PATCH 7 of 8 v5] sslutil: propagate return value ssl.PROTOCOL_SSLv23 from protocolsettings()

2020-05-31 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590970587 -7200 # Mon Jun 01 02:16:27 2020 +0200 # Node ID 64807e560eedc6c2571d34ffb7bd2f7e356dd606 # Parent 7576507bfe5ea28ab6d496d532bb9b453998ca35 # EXP-Topic require_modern_ssl sslutil: propagate return value ssl.PROTOCOL_SSLv23 from

[PATCH 8 of 8 v5] sslutil: properly detect which TLS versions are supported by the ssl module

2020-05-31 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1590976314 -7200 # Mon Jun 01 03:51:54 2020 +0200 # Node ID fbd7fcc81958b551b6dcbc26cc22fbdd0a0cdc33 # Parent 64807e560eedc6c2571d34ffb7bd2f7e356dd606 # EXP-Topic require_modern_ssl sslutil: properly detect which TLS versions are supported by

Re: [PATCH 1 of 8 v5] setup: require that Python has TLS 1.1 or TLS 1.2

2020-06-01 Thread Manuel Jacob
On 2020-06-01 13:32, Yuya Nishihara wrote: On Mon, 01 Jun 2020 05:28:12 +0200, Manuel Jacob wrote: # HG changeset patch # User Manuel Jacob # Date 1590874939 -7200 # Sat May 30 23:42:19 2020 +0200 # Node ID 2d2497e32978bc17060f5142b45789b449e7d9d3 # Parent

[PATCH 1 of 3] sslutil: rename 'minimumprotocolui' -> 'minimumprotocol'

2020-06-01 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1591013226 -7200 # Mon Jun 01 14:07:06 2020 +0200 # Node ID 776bb7e68bba72e8f37d81737df46e63e2565b2a # Parent d61c05450b378372437b8ea499ff43ce0b7f5cb3 # EXP-Topic sslutil-cleanup sslutil: rename 'minimumprotocolui' -> 'minimu

[PATCH 3 of 3] sslutil: propagate return value ssl.PROTOCOL_SSLv23 from protocolsettings()

2020-06-01 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1591014862 -7200 # Mon Jun 01 14:34:22 2020 +0200 # Node ID 612b83f33402efb1d64a81bc2d6a9f024d560cb4 # Parent cc29486022ffe6525fc242fa395ea5236db538eb # EXP-Topic sslutil-cleanup sslutil: propagate return value ssl.PROTOCOL_SSLv23 from

[PATCH 2 of 3] sslutil: stop storing protocol and options for SSLContext in settings dict

2020-06-01 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1591014013 -7200 # Mon Jun 01 14:20:13 2020 +0200 # Node ID cc29486022ffe6525fc242fa395ea5236db538eb # Parent 776bb7e68bba72e8f37d81737df46e63e2565b2a # EXP-Topic sslutil-cleanup sslutil: stop storing protocol and options for SSLContext in

[PATCH] sslutil: fix comment to use inclusive or instead of exclusive or

2020-06-01 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1591017751 -7200 # Mon Jun 01 15:22:31 2020 +0200 # Node ID cdda90fe3db5040472014c980385fba69f37ad76 # Parent d61c05450b378372437b8ea499ff43ce0b7f5cb3 sslutil: fix comment to use inclusive or instead of exclusive or The incorrect "either

[PATCH stable] py3: always flush ui streams on Python 3

2020-06-02 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1591120869 -7200 # Tue Jun 02 20:01:09 2020 +0200 # Branch stable # Node ID ebbc45544673c33ea3beb887ed4d5230b015102a # Parent 91e509a12dbc4cd6cf2dcb9dae3ed383932132ac py3: always flush ui streams on Python 3 On Python 2, we rely on that

Re: [PATCH stable] py3: always flush ui streams on Python 3

2020-06-02 Thread Manuel Jacob
On 2020-06-03 00:04, Augie Fackler wrote: On Jun 2, 2020, at 14:07, Manuel Jacob wrote: # HG changeset patch # User Manuel Jacob # Date 1591120869 -7200 # Tue Jun 02 20:01:09 2020 +0200 # Branch stable # Node ID ebbc45544673c33ea3beb887ed4d5230b015102a # Parent

[PATCH stable v2] py3: always flush ui streams on Python 3

2020-06-02 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1591120869 -7200 # Tue Jun 02 20:01:09 2020 +0200 # Branch stable # Node ID 6d7faa3c9b9cebd46ff7964be703d5b67d6eda50 # Parent 91e509a12dbc4cd6cf2dcb9dae3ed383932132ac py3: always flush ui streams on Python 3 On Python 2, we rely on that

Re: [PATCH stable] py3: always flush ui streams on Python 3

2020-06-02 Thread Manuel Jacob
On 2020-06-03 05:46, Manuel Jacob wrote: On 2020-06-03 00:04, Augie Fackler wrote: On Jun 2, 2020, at 14:07, Manuel Jacob wrote: # HG changeset patch # User Manuel Jacob # Date 1591120869 -7200 # Tue Jun 02 20:01:09 2020 +0200 # Branch stable # Node ID

Re: [PATCH stable] py3: always flush ui streams on Python 3

2020-06-03 Thread Manuel Jacob
On 2020-06-03 22:40, Augie Fackler wrote: On Jun 3, 2020, at 07:13, Yuya Nishihara wrote: On Wed, 03 Jun 2020 05:46:05 +0200, Manuel Jacob wrote: On 2020-06-03 00:04, Augie Fackler wrote: On Jun 2, 2020, at 14:07, Manuel Jacob wrote: # HG changeset patch # User Manuel Jacob # Date

[PATCH stable] tests: fix indentation

2020-06-04 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1591323037 -7200 # Fri Jun 05 04:10:37 2020 +0200 # Branch stable # Node ID 6a4e16808cadfd122312e69728c776baa7142243 # Parent 2dc5ae953c4a8265578acbe7d3e26c93ec8a08fb # EXP-Topic fix_indentation tests: fix indentation diff --git a/tests/test

[PATCH 2 of 4 stable] py3: schedule pycompat.{stdin,stdout,stderr} for removal

2020-06-05 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1591334577 -7200 # Fri Jun 05 07:22:57 2020 +0200 # Branch stable # Node ID 31ab0d15f82bfef3030b653583f89c0d0449fd9c # Parent ab1bb054809d078f7111c5145c1a4e2c536d37c5 # EXP-Topic streams py3: schedule pycompat.{stdin,stdout,stderr} for removal

[PATCH 1 of 4 stable] py3: add warning about buffering behavior of pycompat.{stdout,stderr}

2020-06-05 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1591334452 -7200 # Fri Jun 05 07:20:52 2020 +0200 # Branch stable # Node ID ab1bb054809d078f7111c5145c1a4e2c536d37c5 # Parent 2dc5ae953c4a8265578acbe7d3e26c93ec8a08fb # EXP-Topic streams py3: add warning about buffering behavior of pycompat

[PATCH 4 of 4 stable] py3: stop using block-buffered stdout on Python 3

2020-06-05 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1591333053 -7200 # Fri Jun 05 06:57:33 2020 +0200 # Branch stable # Node ID 92af1f5877d02bd79420c04b1177accce27a61ce # Parent 618173e6b7115a93588b7f1a62f9b9b8460ca84b # EXP-Topic streams py3: stop using block-buffered stdout on Python 3 The

[PATCH 3 of 4 stable] py3: update comment to account for Python 2 and Python 3 differences

2020-06-05 Thread Manuel Jacob
# HG changeset patch # User Manuel Jacob # Date 1591332015 -7200 # Fri Jun 05 06:40:15 2020 +0200 # Branch stable # Node ID 618173e6b7115a93588b7f1a62f9b9b8460ca84b # Parent 31ab0d15f82bfef3030b653583f89c0d0449fd9c # EXP-Topic streams py3: update comment to account for Python 2 and Python 3

Re: [PATCH stable] py3: always flush ui streams on Python 3

2020-06-05 Thread Manuel Jacob
On 2020-06-04 14:21, Yuya Nishihara wrote: On Thu, 04 Jun 2020 07:54:14 +0200, Manuel Jacob wrote: On 2020-06-03 22:40, Augie Fackler wrote: >> On Jun 3, 2020, at 07:13, Yuya Nishihara wrote: >> Flushing stdout per write() sounds bad. If that's the only way to work >&g

  1   2   3   4   >