D7227: localrepo: use str for lookup in vars()

2019-11-04 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY vars() returns a dict of str. So always use a native str for the key lookup. REPOSITORY rHG Mercurial BRANCH stable REVISION DETAIL

D7226: tests: write out file using bytes I/O

2019-11-04 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY The encoding of sys.stdout varies between Python versions. So using a one-liner to write a file from a Unicode string is not deterministic. This commit

D7225: import-checker: open all source files as utf-8

2019-11-04 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Before, we opened in text mode and used the default encoding to interpret the bytes within. This caused problems interpreting some byte sequences in some

D7222: run-tests: use byte strings for inserted output

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHGd9e7ac50b80a: run-tests: use byte strings for inserted output (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial

D7224: tests: use venv on Python 3

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHG9bab6407c2c9: tests: use venv on Python 3 (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D7223: tests: remove HGALLOWPYTHON3 reference

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHG9a250055ffbc: tests: remove HGALLOWPYTHON3 reference (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial CHANGES SINCE

D7222: run-tests: use byte strings for inserted output

2019-11-04 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY We were inserting str on Python 3 which resulted in mixed str/bytes types on the list. This would later blow up when trying to write str to the .err file

D7224: tests: use venv on Python 3

2019-11-04 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added subscribers: mercurial-devel, mjpieters. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This test was failing in some Python 3 environments because `$PYTHON -m virtualenv` was somehow resulting in Python 2 being used. Why, I'm not sure.

D7223: tests: remove HGALLOWPYTHON3 reference

2019-11-04 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added subscribers: mercurial-devel, mjpieters. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This variable was removed from setup.py in c3e10f705a6c . REPOSITORY rHG

mercurial@43407: 2 new changesets (2 on stable)

2019-11-04 Thread Mercurial Commits
2 new changesets (2 on stable) in mercurial: https://www.mercurial-scm.org/repo/hg/rev/c3bca833cb92 changeset: 43406:c3bca833cb92 branch: stable user:Augie Fackler date:Mon Nov 04 12:20:11 2019 -0500 summary: hghave: fix bytes/string issue on Python 3

[PATCH STABLE] hghave: fix bytes/string issue on Python 3

2019-11-04 Thread Augie Fackler
# HG changeset patch # User Augie Fackler # Date 1572888011 18000 # Mon Nov 04 12:20:11 2019 -0500 # Branch stable # Node ID 1ea0fc92eb401c90f544ac5251d4d6ff51cf72bb # Parent 40bf3d7ecc42b7f7cf8004f346b6fe304ffe7a59 hghave: fix bytes/string issue on Python 3 diff --git a/tests/hghave.py

mercurial@43405: 3 new changesets (3 on stable)

2019-11-04 Thread Mercurial Commits
3 new changesets (3 on stable) in mercurial: https://www.mercurial-scm.org/repo/hg/rev/90fba2248693 changeset: 43403:90fba2248693 branch: stable user:Ian Moody date:Mon Nov 04 19:05:44 2019 + summary: fsmonitor: use stringutil.forcebytestr() instead of str() on an

D7220: contrib: require Python 3.7 for byteify-strings.py

2019-11-04 Thread Kwan (Ian Moody)
Closed by commit rHG09234eeae206: contrib: require Python 3.7 for byteify-strings.py (authored by Kwan). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial

D7216: packaging: add support for CentOS 8

2019-11-04 Thread Phabricator
Closed by commit rHG7c9d42c1042d: packaging: add support for CentOS 8 (authored by Mathias De Mare mathias.de_m...@nokia.com). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY

D7217: packaging: allow choosing python version depending on centos version

2019-11-04 Thread Phabricator
Closed by commit rHGa69772d2f3c3: packaging: allow choosing python version depending on centos version (authored by Mathias De Mare mathias.de_m...@nokia.com). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in

D7218: fsmonitor: use stringutil.forcebytestr() instead of str() on an exception

2019-11-04 Thread Kwan (Ian Moody)
Closed by commit rHG90fba2248693: fsmonitor: use stringutil.forcebytestr() instead of str() on an exception (authored by Kwan). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY

D7219: hghave: decode black's version before passing to StrictVersion

2019-11-04 Thread Kwan (Ian Moody)
Kwan added a comment. Kwan abandoned this revision. Drop in favour of D7221 . REPOSITORY rHG Mercurial CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7219/new/ REVISION DETAIL https://phab.mercurial-scm.org/D7219 To: Kwan,

D7219: hghave: decode black's version before passing to StrictVersion

2019-11-04 Thread durin42 (Augie Fackler)
durin42 added a comment. This is subtlely wrong on Python 2, and I think D7221 is a correct fix. (I'd previously mailed that patch, but mail is backlogged.) REPOSITORY rHG Mercurial CHANGES SINCE LAST ACTION

D7221: hghave: fix bytes/string issue on Python 3

2019-11-04 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D7221 AFFECTED FILES tests/hghave.py CHANGE DETAILS diff --git a/tests/hghave.py b/tests/hghave.py

mercurial@43402: 18 new changesets (18 on stable)

2019-11-04 Thread Mercurial Commits
18 new changesets (18 on stable) in mercurial: https://www.mercurial-scm.org/repo/hg/rev/6469c23a40a2 changeset: 43385:6469c23a40a2 branch: stable user:Gregory Szorc date:Sat Nov 02 12:42:23 2019 -0700 summary: fsmonitor: refresh pywatchman with upstream

D7061: convert: don't pass bytes to, or expect bytes from, emailparser

2019-11-04 Thread Kwan (Ian Moody)
Kwan added a comment. Kwan abandoned this revision. Obsoleted by a better fix in cf3bf3b03445 . REPOSITORY rHG Mercurial CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D7061/new/ REVISION DETAIL

D7220: contrib: require Python 3.7 for byteify-strings.py

2019-11-04 Thread Kwan (Ian Moody)
Kwan created this revision. Herald added subscribers: mercurial-devel, mjpieters. Herald added a reviewer: hg-reviewers. REVISION SUMMARY bb509f39d387 made an error, it's actually 3.7 that introduced token.COMMENT.

D7219: hghave: decode black's version before passing to StrictVersion

2019-11-04 Thread Kwan (Ian Moody)
Kwan created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY StrictVersion doesn't accept bytes, so test-hghave.t was dying with "cannot use a string pattern on a bytes-like object". REPOSITORY rHG Mercurial BRANCH

D7218: fsmonitor: use stringutil.forcebytestr() instead of str() on an exception

2019-11-04 Thread Kwan (Ian Moody)
Kwan created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Similar to 5fa8ac91190e / D7206 , should get

D7215: py3: use %d to format an int

2019-11-04 Thread Kwan (Ian Moody)
Closed by commit rHG742065def6ca: py3: use %d to format an int (authored by Kwan). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D7197: automation: install black

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHG0d2393fc1cf8: automation: install black (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D7214: fsmonitor: normalize exception types to bytes

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHG9a8f8c6ed965: fsmonitor: normalize exception types to bytes (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial CHANGES

D7213: fsmonitor: normalize clock value to bytes

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHG09ab61c0ab4b: fsmonitor: normalize clock value to bytes (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial CHANGES

D7212: fsmonitor: use next() instead of .next()

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHG2b5aab5e9e36: fsmonitor: use next() instead of .next() (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial CHANGES

D7210: fsmonitor: handle unicode keys in tuples

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHGd359dfc15aca: fsmonitor: handle unicode keys in tuples (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". CHANGED PRIOR TO COMMIT

D7211: fsmonitor: normalize Watchman paths to bytes

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHG2b8be670dcb6: fsmonitor: normalize Watchman paths to bytes (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial CHANGES

D7209: fsmonitor: make _hashignore compatible with Python 3

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHGbdebc7b54dca: fsmonitor: make _hashignore compatible with Python 3 (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial

D7208: fsmonitor: normalize hostname to bytes

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHG8a9e53b974ee: fsmonitor: normalize hostname to bytes (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial CHANGES SINCE

D7207: fsmonitor: access repo.root

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHGffdf0bf28212: fsmonitor: access repo.root (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D7206: fsmonitor: coerce watchman exception to bytes

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHG5fa8ac91190e: fsmonitor: coerce watchman exception to bytes (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial CHANGES

D7201: fsmonitor: refresh pywatchman with upstream

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHG6469c23a40a2: fsmonitor: refresh pywatchman with upstream (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial CHANGES

D7202: fsmonitor: remove pywatchman from exclusion rule

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHG2247bf3cec76: fsmonitor: remove pywatchman from exclusion rule (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial

D7205: fsmonitor: fix str/bytes mismatch when accessing watchman version

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHGe6ce1599af74: fsmonitor: fix str/bytes mismatch when accessing watchman version (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY

D7204: fsmonitor: reapply b1f62cd39b5c

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHG51316de92ad0: fsmonitor: reapply b1f62cd39b5c (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial CHANGES SINCE LAST

D7203: fsmonitor: reapply dd35abc409ee

2019-11-04 Thread indygreg (Gregory Szorc)
Closed by commit rHG9eed959cd8ae: fsmonitor: reapply dd35abc409ee (authored by indygreg). This revision was automatically updated to reflect the committed changes. This revision was not accepted when it landed; it landed in state "Needs Review". REPOSITORY rHG Mercurial CHANGES SINCE LAST

D7210: fsmonitor: handle unicode keys in tuples

2019-11-04 Thread durin42 (Augie Fackler)
durin42 added inline comments. INLINE COMMENTS > bser.c:182 > +#else > + PyObject* utf = PyUnicode_AsEncodedString(sval, "utf-8", "ignore"); > + if (utf == NULL) { By reading this code, I believe `sval` should have been `key`, so I've fixed that in flight. REPOSITORY rHG Mercurial

mercurial@43384: 9 new changesets (9 on stable)

2019-11-04 Thread Mercurial Commits
9 new changesets (9 on stable) in mercurial: https://www.mercurial-scm.org/repo/hg/rev/b27cf9f52194 changeset: 43376:b27cf9f52194 branch: stable user:Martin von Zweigbergk date:Fri Nov 01 21:46:34 2019 -0700 summary: histedit: restore hex nodeids to be 12 digits long

Re: [PATCH 2 of 2 STABLE] py3: add a __str__ method to Abort

2019-11-04 Thread Augie Fackler
queued for stable, thanks > On Nov 4, 2019, at 10:14, Denis Laxalde wrote: > > # HG changeset patch > # User Denis Laxalde > # Date 1572880381 -3600 > # Mon Nov 04 16:13:01 2019 +0100 > # Branch stable > # Node ID f3fa4fc93f68baf007c9e24ded876f649a028728 > # Parent

[PATCH 1 of 2 STABLE] py3: add Python 3 exception output to test-lfs-serve-access.t

2019-11-04 Thread Denis Laxalde
# HG changeset patch # User Denis Laxalde # Date 1572879849 -3600 # Mon Nov 04 16:04:09 2019 +0100 # Branch stable # Node ID cb58293505fa65d1b7f2a7d0e3fc3b3320122ac6 # Parent 1edf620a37a32755c413ca4f3a9745b0458fc1bc py3: add Python 3 exception output to test-lfs-serve-access.t Similar to

Re: [PATCH STABLE] perf: add a way to benchmark `dirstate.status`

2019-11-04 Thread Pierre-Yves David
On 11/4/19 2:34 PM, Yuya Nishihara wrote: On Mon, 4 Nov 2019 11:33:48 +0100, Pierre-Yves David wrote: On 11/4/19 11:29 AM, Pulkit Goyal wrote: On Mon, Nov 4, 2019 at 1:29 PM Pulkit Goyal <7895pul...@gmail.com> wrote: On Mon, Nov 4, 2019 at 1:24 PM Pierre-Yves David wrote: # HG changeset

Re: [PATCH STABLE] perf: add a way to benchmark `dirstate.status`

2019-11-04 Thread Yuya Nishihara
On Mon, 4 Nov 2019 11:33:48 +0100, Pierre-Yves David wrote: > On 11/4/19 11:29 AM, Pulkit Goyal wrote: > > On Mon, Nov 4, 2019 at 1:29 PM Pulkit Goyal <7895pul...@gmail.com> wrote: > >> > >> On Mon, Nov 4, 2019 at 1:24 PM Pierre-Yves David > >> wrote: > >>> > >>> # HG changeset patch > >>> # User

Re: [PATCH 1 of 3 STABLE] py3: use mail.parsebytes() in gnuarch catlog parser

2019-11-04 Thread Yuya Nishihara
On Mon, 04 Nov 2019 10:18:44 +0100, Denis Laxalde wrote: > # HG changeset patch > # User Denis Laxalde > # Date 1572857533 -3600 > # Mon Nov 04 09:52:13 2019 +0100 > # Branch stable > # Node ID b09e0c3c51f1d819eaaec188a5c9e26219294586 > # Parent 579672b347d2169a4abfb372873972a0fd6a839c >

Re: [PATCH STABLE] tests: handle Message-Id line wrapping in test-notify-changegroup.t

2019-11-04 Thread Yuya Nishihara
On Mon, 04 Nov 2019 09:48:27 +0100, Denis Laxalde wrote: > # HG changeset patch > # User Denis Laxalde > # Date 1572856510 -3600 > # Mon Nov 04 09:35:10 2019 +0100 > # Branch stable > # Node ID 9a43cef9ec59f711f1f697430aafd569ca9e2b31 > # Parent 579672b347d2169a4abfb372873972a0fd6a839c >

Re: [PATCH STABLE] perf: add a way to benchmark `dirstate.status`

2019-11-04 Thread Pierre-Yves David
On 11/4/19 11:29 AM, Pulkit Goyal wrote: On Mon, Nov 4, 2019 at 1:29 PM Pulkit Goyal <7895pul...@gmail.com> wrote: On Mon, Nov 4, 2019 at 1:24 PM Pierre-Yves David wrote: # HG changeset patch # User Pierre-Yves David # Date 1572823004 -3600 # Mon Nov 04 00:16:44 2019 +0100 # Branch

Re: [PATCH STABLE] perf: add a way to benchmark `dirstate.status`

2019-11-04 Thread Pulkit Goyal
On Mon, Nov 4, 2019 at 1:29 PM Pulkit Goyal <7895pul...@gmail.com> wrote: > > On Mon, Nov 4, 2019 at 1:24 PM Pierre-Yves David > wrote: > > > > # HG changeset patch > > # User Pierre-Yves David > > # Date 1572823004 -3600 > > # Mon Nov 04 00:16:44 2019 +0100 > > # Branch stable > > # Node

Re: [PATCH STABLE] perf: add a way to benchmark `dirstate.status`

2019-11-04 Thread Pulkit Goyal
On Mon, Nov 4, 2019 at 1:24 PM Pierre-Yves David wrote: > > # HG changeset patch > # User Pierre-Yves David > # Date 1572823004 -3600 > # Mon Nov 04 00:16:44 2019 +0100 > # Branch stable > # Node ID 618ae1b4dcbacbc379a4ec96b7391876b6503e86 > # Parent

[PATCH STABLE] perf: add a way to benchmark `dirstate.status`

2019-11-04 Thread Pierre-Yves David
# HG changeset patch # User Pierre-Yves David # Date 1572823004 -3600 # Mon Nov 04 00:16:44 2019 +0100 # Branch stable # Node ID 618ae1b4dcbacbc379a4ec96b7391876b6503e86 # Parent c2c3ee8794dd3749f2053555250576039cb2f1f4 # EXP-Topic bench-status # Available At

[PATCH 3 of 3 STABLE] py3: encode strings before setting rev summary in gnuarch converter

2019-11-04 Thread Denis Laxalde
# HG changeset patch # User Denis Laxalde # Date 1572858548 -3600 # Mon Nov 04 10:09:08 2019 +0100 # Branch stable # Node ID b760c0afe8e8cc864b069b4f56d6548e004131d2 # Parent e0e912bb2453e033807000be5a5c648efef72d59 py3: encode strings before setting rev summary in gnuarch converter ---

[PATCH 2 of 3 STABLE] py3: use raw string to query EmailMessage in gnuarch converter

2019-11-04 Thread Denis Laxalde
# HG changeset patch # User Denis Laxalde # Date 1572857770 -3600 # Mon Nov 04 09:56:10 2019 +0100 # Branch stable # Node ID e0e912bb2453e033807000be5a5c648efef72d59 # Parent b09e0c3c51f1d819eaaec188a5c9e26219294586 py3: use raw string to query EmailMessage in gnuarch converter diff --git

[PATCH 1 of 3 STABLE] py3: use mail.parsebytes() in gnuarch catlog parser

2019-11-04 Thread Denis Laxalde
# HG changeset patch # User Denis Laxalde # Date 1572857533 -3600 # Mon Nov 04 09:52:13 2019 +0100 # Branch stable # Node ID b09e0c3c51f1d819eaaec188a5c9e26219294586 # Parent 579672b347d2169a4abfb372873972a0fd6a839c py3: use mail.parsebytes() in gnuarch catlog parser We drop 'catlogparser'

Re: rpm repodata

2019-11-04 Thread Mathias De Maré
On Fri, Apr 12, 2019 at 2:27 PM Pierre-Yves David < pierre-yves.da...@ens-lyon.org> wrote: > I've excavated my build-nightly.sh script from the former build machine. > It is attached to this email. > Just a small update on this: I didn't use the script directly (although it's useful to start

[PATCH STABLE] tests: handle Message-Id line wrapping in test-notify-changegroup.t

2019-11-04 Thread Denis Laxalde
# HG changeset patch # User Denis Laxalde # Date 1572856510 -3600 # Mon Nov 04 09:35:10 2019 +0100 # Branch stable # Node ID 9a43cef9ec59f711f1f697430aafd569ca9e2b31 # Parent 579672b347d2169a4abfb372873972a0fd6a839c tests: handle Message-Id line wrapping in test-notify-changegroup.t This