Mon, 21 Feb 2022 11:09:30 -0700 dirstate: remove pycompat.iteritems()
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 11:09:30 -0700] rev 49013
dirstate: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12327
Mon, 21 Feb 2022 11:08:53 -0700 debugcommands: remove pycompat.iteritems()
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 11:08:53 -0700] rev 49012
debugcommands: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12326
Tue, 01 Mar 2022 20:47:37 -0800 config: remove pycompat.iteritems()
Gregory Szorc <gregory.szorc@gmail.com> [Tue, 01 Mar 2022 20:47:37 -0800] rev 49011
config: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12325
Mon, 21 Feb 2022 11:08:04 -0700 commands: remove pycompat.iteritems()
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 11:08:04 -0700] rev 49010
commands: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12324
Mon, 21 Feb 2022 11:07:29 -0700 remotefilelog: remove pycompat.iteritems()
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 11:07:29 -0700] rev 49009
remotefilelog: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12323
Mon, 21 Feb 2022 11:06:46 -0700 lfs: remove pycompat.iteritems()
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 11:06:46 -0700] rev 49008
lfs: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12322
Tue, 01 Mar 2022 20:46:06 -0800 largefiles: remove pycompat.iteritems()
Gregory Szorc <gregory.szorc@gmail.com> [Tue, 01 Mar 2022 20:46:06 -0800] rev 49007
largefiles: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12321
Mon, 21 Feb 2022 11:05:42 -0700 infinitepush: remove pycompat.iteritems()
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 11:05:42 -0700] rev 49006
infinitepush: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12320
Tue, 01 Mar 2022 20:44:59 -0800 convert: remove pycompat.iteritems()
Gregory Szorc <gregory.szorc@gmail.com> [Tue, 01 Mar 2022 20:44:59 -0800] rev 49005
convert: remove pycompat.iteritems() Differential Revision: https://phab.mercurial-scm.org/D12319
Thu, 03 Mar 2022 18:28:30 -0800 global: bulk replace simple pycompat.iteritems(x) with x.items()
Gregory Szorc <gregory.szorc@gmail.com> [Thu, 03 Mar 2022 18:28:30 -0800] rev 49004
global: bulk replace simple pycompat.iteritems(x) with x.items() pycompat.iteritems() just calls .items(). This commit applies a regular expression search and replace to convert simple instances of pycompat.iteritems() with .items(). There are still a handful of calls to pycompat.iteritems() remaining. But these all have more complicated expressions that I wasn't comfortable performing an automated replace on. In addition, some simple replacements were withheld because they broke pytype. These will be handled by their own changesets. Differential Revision: https://phab.mercurial-scm.org/D12318
Thu, 03 Mar 2022 17:39:20 -0800 worker: silence type error when calling pickle
Gregory Szorc <gregory.szorc@gmail.com> [Thu, 03 Mar 2022 17:39:20 -0800] rev 49003
worker: silence type error when calling pickle pytype is complaining that the argument to `pickle.load()` is not an `IO`. pytype isn't wrong: `_blockingreader` doesn't implement `io.RawIOBase`, only `read()` and `readline()`. But it appears this is enough for pickle. So we silence the false positive. This fixes a regression introduced by D12304 / cc0e059d2af8: worker: remove Python 2 support code. Differential Revision: https://phab.mercurial-scm.org/D12337
Mon, 21 Feb 2022 10:53:09 -0700 stringutil: remove Python 2 support code
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:53:09 -0700] rev 49002
stringutil: remove Python 2 support code Differential Revision: https://phab.mercurial-scm.org/D12314
Mon, 21 Feb 2022 10:52:27 -0700 procutil: delete Python 2 support code
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:52:27 -0700] rev 49001
procutil: delete Python 2 support code This entailed deleting a function for Python 2 support and renaming the Python 3 function to match the exported symbol name. Differential Revision: https://phab.mercurial-scm.org/D12313
Tue, 01 Mar 2022 20:37:09 -0800 revlogutils: unconditionally pass version to random seed
Gregory Szorc <gregory.szorc@gmail.com> [Tue, 01 Mar 2022 20:37:09 -0800] rev 49000
revlogutils: unconditionally pass version to random seed Differential Revision: https://phab.mercurial-scm.org/D12312
Mon, 21 Feb 2022 10:48:45 -0700 revlogutils: remove Python 2 variant for iter_seed
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:48:45 -0700] rev 48999
revlogutils: remove Python 2 variant for iter_seed Differential Revision: https://phab.mercurial-scm.org/D12311
Mon, 21 Feb 2022 10:47:31 -0700 charencode: remove Python 2 support code
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:47:31 -0700] rev 48998
charencode: remove Python 2 support code Differential Revision: https://phab.mercurial-scm.org/D12310
Mon, 21 Feb 2022 10:47:08 -0700 hgweb: remove Python 2 support code
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:47:08 -0700] rev 48997
hgweb: remove Python 2 support code Differential Revision: https://phab.mercurial-scm.org/D12309
Thu, 03 Mar 2022 08:06:37 -0800 hgweb: remove Python 3 conditional
Gregory Szorc <gregory.szorc@gmail.com> [Thu, 03 Mar 2022 08:06:37 -0800] rev 48996
hgweb: remove Python 3 conditional We probably have a better tobytes() implementation somewhere in pycompat. But I don't want to bloat scope of this commit. Differential Revision: https://phab.mercurial-scm.org/D12308
Mon, 21 Feb 2022 10:45:24 -0700 hgweb: simplify uenv assignment
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:45:24 -0700] rev 48995
hgweb: simplify uenv assignment We don't need the Python 3 conditional. We can call items() directly since we're on Python 3 now. Differential Revision: https://phab.mercurial-scm.org/D12307
Mon, 21 Feb 2022 10:43:58 -0700 chgserver: remove Python 2 support code
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:43:58 -0700] rev 48994
chgserver: remove Python 2 support code The logic here is more complicated than most Python 2/3 support code. But the rewritten logic should be identical. Differential Revision: https://phab.mercurial-scm.org/D12306
Mon, 21 Feb 2022 10:40:58 -0700 chgserver: remove Python 2 branch
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:40:58 -0700] rev 48993
chgserver: remove Python 2 branch Differential Revision: https://phab.mercurial-scm.org/D12305
Mon, 21 Feb 2022 10:39:48 -0700 worker: remove Python 2 support code
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:39:48 -0700] rev 48992
worker: remove Python 2 support code Differential Revision: https://phab.mercurial-scm.org/D12304
Mon, 21 Feb 2022 10:39:09 -0700 wireprotoframing: remove Python 2 support code
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:39:09 -0700] rev 48991
wireprotoframing: remove Python 2 support code Differential Revision: https://phab.mercurial-scm.org/D12303
Mon, 21 Feb 2022 10:38:27 -0700 windows: remove write throttling support
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:38:27 -0700] rev 48990
windows: remove write throttling support This mode would only be active on Python 2, which is no longer supported. Differential Revision: https://phab.mercurial-scm.org/D12302
Mon, 21 Feb 2022 10:36:44 -0700 windows: remove conditional for Python 3
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:36:44 -0700] rev 48989
windows: remove conditional for Python 3 Differential Revision: https://phab.mercurial-scm.org/D12301
Mon, 21 Feb 2022 10:35:42 -0700 util: remove superfluous ispy3 test
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:35:42 -0700] rev 48988
util: remove superfluous ispy3 test Differential Revision: https://phab.mercurial-scm.org/D12300
Mon, 21 Feb 2022 10:35:20 -0700 urllibcompat: remove Python 2 support code
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:35:20 -0700] rev 48987
urllibcompat: remove Python 2 support code We had to move the `import` statements to appease the import checker. This whole module could probably be deleted as its point in life is to pave over Python 2/3 differences. But that's for a different commit. Differential Revision: https://phab.mercurial-scm.org/D12299
Mon, 21 Feb 2022 10:32:45 -0700 keepalive: remove Python 2 support code
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:32:45 -0700] rev 48986
keepalive: remove Python 2 support code Differential Revision: https://phab.mercurial-scm.org/D12298
Mon, 21 Feb 2022 10:31:53 -0700 extensions: remove superfluous pycompat.ispy3 check
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:31:53 -0700] rev 48985
extensions: remove superfluous pycompat.ispy3 check This is always True now. Differential Revision: https://phab.mercurial-scm.org/D12297
Mon, 21 Feb 2022 10:31:00 -0700 archival: remove check for Python 2
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:31:00 -0700] rev 48984
archival: remove check for Python 2 Differential Revision: https://phab.mercurial-scm.org/D12296
Thu, 03 Mar 2022 07:58:29 -0800 encoding: remove Python 2 support code
Gregory Szorc <gregory.szorc@gmail.com> [Thu, 03 Mar 2022 07:58:29 -0800] rev 48983
encoding: remove Python 2 support code Differential Revision: https://phab.mercurial-scm.org/D12295
Mon, 21 Feb 2022 10:28:19 -0700 dispatch: remove Python 2 function variants
Gregory Szorc <gregory.szorc@gmail.com> [Mon, 21 Feb 2022 10:28:19 -0700] rev 48982
dispatch: remove Python 2 function variants Differential Revision: https://phab.mercurial-scm.org/D12294
(0) -30000 -10000 -3000 -1000 -300 -100 -50 -32 +32 +50 +100 +300 +1000 tip