D12341: py3: replace pycompat.itervalues(x) with x.values()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: martinvonz. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY pycompat.itervalues(x) just calls x.values(). So this is equivalent. The rewrite was perfomed via an automated search

D12352: py3: use class X: instead of class X(object):

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: durin42. Herald added a reviewer: martinvonz. Herald added subscribers: mercurial-patches, Kwan. Herald added a reviewer: hg-reviewers. REVISION SUMMARY The inheritance from object is implied in Python 3. So this should be equivalent.

D12353: demandimport: delete demandimportpy2 module

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY We no longer support Python 2. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12353 AFFECTED FILES

D12347: py3: stop using util.iterfile()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The Python 3 implementation is a no-op. So this is equivalent. We still keep util.iterfile() around for backwards API compatibility to help the Python 3

D12351: check-code: remove ban on old-style classes

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY In Python 3, `class foo:` is equivalent to `class foo(object):`. So we can allow the former form now. REPOSITORY rHG Mercurial BRANCH default REVISION

D12350: tests: remove Python 2 support code

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12350 AFFECTED FILES tests/test-mq-missingfiles.t tests/test-mq-qimport.t

D12340: py3: use str instead of pycompat.unicode

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added subscribers: mercurial-patches, Kwan. Herald added a reviewer: hg-reviewers. REVISION SUMMARY pycompat.unicode is an alias to str. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12340 AFFECTED FILES

D12349: tests: remove Python < 3 check

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY We require Python 3 now. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12349 AFFECTED FILES

D12348: cborutil: remove Python 2 definition of _elementtointeger()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12348 AFFECTED FILES mercurial/utils/cborutil.py CHANGE DETAILS diff --git

D12346: util: remove iterfile() variant for buggy EINTR handling

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The workaround for Python 2 is no longer needed. So we can delete some code. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL

D12345: statprof: remove superfluous sys.version_info check

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Always true since we require Python 3 now. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12345 AFFECTED FILES

D12342: url: remove Python 2.7 support code

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12342 AFFECTED FILES mercurial/url.py CHANGE DETAILS diff --git

D12344: policy: remove Python 2.7 compatibility code

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12344 AFFECTED FILES mercurial/policy.py CHANGE DETAILS diff --git

D12343: lsprof: remove some Python 2.7 compatibility code

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12343 AFFECTED FILES mercurial/lsprof.py CHANGE DETAILS diff --git

D12338: py3: use int instead of pycompat.long

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY pycompat.long is aliased to int. So this should have no change in functionality. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL

D12339: ui: use input() directly

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY pycompat.rawinput() is an alias to input() REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12339 AFFECTED FILES

[PATCH] chgserver: remove Python 2 file descriptor logic

2022-03-03 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1646357326 -32400 # Fri Mar 04 10:28:46 2022 +0900 # Node ID 3a9729bead90ef7caaf4d25138680c83a888be78 # Parent 46b3ecfb16e2781ede9752d972dc22f0e1dfea87 chgserver: remove Python 2 file descriptor logic Follows up 0bb28b7736bc "chgserver:

D12337: worker: silence type error when calling pickle

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY pytype is complaining that the argument to `pickle.load()` is not an `IO`. pytype isn't wrong: `_blockingreader` doesn't implement `io.RawIOBase`, only

D12333: revlog: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12333 AFFECTED FILES mercurial/revlog.py CHANGE DETAILS diff --git

D12335: templatekw: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12335 AFFECTED FILES mercurial/templatekw.py CHANGE DETAILS diff --git

D12336: verify: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12336 AFFECTED FILES mercurial/verify.py CHANGE DETAILS diff --git

D12332: merge: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12332 AFFECTED FILES mercurial/merge.py CHANGE DETAILS diff --git

D12334: templatefuncs: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12334 AFFECTED FILES mercurial/templatefuncs.py CHANGE DETAILS diff --git

D12330: localrepo: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12330 AFFECTED FILES mercurial/localrepo.py CHANGE DETAILS diff --git

D12326: debugcommands: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12326 AFFECTED FILES mercurial/debugcommands.py CHANGE DETAILS diff --git

D12331: manifest: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12331 AFFECTED FILES mercurial/manifest.py CHANGE DETAILS diff --git

D12328: help: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12328 AFFECTED FILES mercurial/help.py CHANGE DETAILS diff --git

D12329: keepalive: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12329 AFFECTED FILES mercurial/keepalive.py CHANGE DETAILS diff --git

D12327: dirstate: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12327 AFFECTED FILES mercurial/dirstate.py CHANGE DETAILS diff --git

D12324: commands: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12324 AFFECTED FILES mercurial/commands.py CHANGE DETAILS diff --git

D12325: config: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12325 AFFECTED FILES mercurial/config.py CHANGE DETAILS diff --git

D12323: remotefilelog: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12323 AFFECTED FILES hgext/remotefilelog/shallowutil.py CHANGE DETAILS diff

D12320: infinitepush: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12320 AFFECTED FILES hgext/infinitepush/__init__.py CHANGE DETAILS diff --git

D12322: lfs: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12322 AFFECTED FILES hgext/lfs/__init__.py hgext/lfs/pointer.py CHANGE DETAILS

D12321: largefiles: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12321 AFFECTED FILES hgext/largefiles/remotestore.py CHANGE DETAILS diff --git

D12319: convert: remove pycompat.iteritems()

2022-03-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D12319 AFFECTED FILES hgext/convert/cvs.py hgext/convert/hg.py CHANGE DETAILS

mercurial-devel | Failed pipeline for branch/default | a843f4cd

2022-03-03 Thread Heptapod
Pipeline #45949 has failed! Project: mercurial-devel ( https://foss.heptapod.net/mercurial/mercurial-devel ) Branch: branch/default ( https://foss.heptapod.net/mercurial/mercurial-devel/-/commits/branch/default ) Commit: a843f4cd (

D12317: dirstate-tree: optimize HashMap lookups with raw_entry_mut

2022-03-03 Thread SimonSapin
SimonSapin created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This switches to using `HashMap` from the hashbrown crate, in order to use its `raw_entry_mut` method. The standard library’s `HashMap` is also based on

mercurial@48911: 70 new changesets

2022-03-03 Thread Mercurial Commits
70 new changesets in mercurial: https://www.mercurial-scm.org/repo/hg/rev/649ff7f86f96 changeset: 48842:649ff7f86f96 user:Simon Sapin date:Thu Mar 03 07:53:11 2022 +0100 summary: rust: enable Python 3 support unconditionally

mercurial-devel | Failed pipeline for branch/default | a843f4cd

2022-03-03 Thread Heptapod
Pipeline #45949 has failed! Project: mercurial-devel ( https://foss.heptapod.net/mercurial/mercurial-devel ) Branch: branch/default ( https://foss.heptapod.net/mercurial/mercurial-devel/-/commits/branch/default ) Commit: a843f4cd (

mercurial@48841: 19 new changesets

2022-03-03 Thread Mercurial Commits
19 new changesets in mercurial: https://www.mercurial-scm.org/repo/hg/rev/9af9e2d54857 changeset: 48823:9af9e2d54857 user:Augie Fackler date:Wed Mar 02 10:04:04 2022 -0500 summary: setup: drop statement of support for Python before 3.5.3

Re: [PATCH 2 of 2] cext: really remove Python 2 file handling code

2022-03-03 Thread Raphaël Gomès
Thanks for keeping an eye out. I've triggered the Windows CI on Heptapod, it should tell us if there is an issue. On 3/3/22 03:37, Yuya Nishihara wrote: # HG changeset patch # User Yuya Nishihara # Date 1646268321 -32400 # Thu Mar 03 09:45:21 2022 +0900 # Node ID