D3295: wireproto: rename HTTPV2 so it less like HTTP/2

2018-04-13 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG77c9ee77687c: wireproto: rename HTTPV2 so it less like HTTP/2 (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3295?vs=8088&i

D3314: wireproto: use command executor for unbundle

2018-04-13 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG72e26319f3b8: wireproto: use command executor for unbundle (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3314?vs=8134&id=8

D3316: exchange: use command executor for getbundle

2018-04-13 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG8f3c6fb55369: exchange: use command executor for getbundle (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3316?vs=8136&id=8

D3315: exchange: use command executor for pushkey

2018-04-13 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG516b5a5edae3: exchange: use command executor for pushkey (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3315?vs=8135&id=818

D3296: debugcommands: perform handshake when obtaining httpv2 peer

2018-04-13 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG72b0982cd509: debugcommands: perform handshake when obtaining httpv2 peer (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D32

D3297: httppeer: implement command executor for version 2 peer

2018-04-13 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG950294e28136: httppeer: implement command executor for version 2 peer (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3297?v

D3317: wireproto: properly call clonebundles command

2018-04-13 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGa168799687e5: wireproto: properly call clonebundles command (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3317?vs=8137&id=

D3318: repository: remove ipeercommands from ipeerbase

2018-04-13 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG62ebfda864de: repository: remove ipeercommands from ipeerbase (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3318?vs=8138&i

D3332: httppeer: handle error response from client reactor

2018-04-13 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG8cea0d57bf37: httppeer: handle error response from client reactor (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3332?vs=81

D3333: wireprotoframing: use value passed into function

2018-04-13 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGb9502b5f2066: wireprotoframing: use value passed into function (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D?vs=8156&

D3321: py3: add b'' prefixes to tests/test-status-inprocess.py

2018-04-13 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG9dfa4e9ed45d: py3: add b'' prefixes to tests/test-status-inprocess.py (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3321?vs=

D3334: wireprotoframing: record when new stream is encountered

2018-04-13 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGe6870bca1f47: wireprotoframing: record when new stream is encountered (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3334?v

D3298: debugcommands: use command executor for invoking commands

2018-04-13 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGfe8c6f9f2914: debugcommands: use command executor for invoking commands (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3298

D3319: py3: use b"%d" instead of str() to convert integers to bytes

2018-04-13 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG34758397ad1b: py3: use b"%d" instead of str() to convert integers to bytes (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D331

D3320: lock: don't use 'file' as a variable name

2018-04-13 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG575f59cdd8a1: lock: don't use 'file' as a variable name (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3320?vs=8140&id=8196

D3322: py3: use urllib.parse.unquote_plus instead of urllib.unquote_plus

2018-04-13 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGafe624d78d43: py3: use urllib.parse.unquote_plus instead of urllib.unquote_plus (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org

D3323: py3: iterate over a copy of dict while changing it

2018-04-13 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG5340daa85c62: py3: iterate over a copy of dict while changing it (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3323?vs=8143&

D3299: wireproto: add media type to version 2 capabilities response

2018-04-13 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGb2fa1591fb44: wireproto: add media type to version 2 capabilities response (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3

D3325: py3: make sure curses.tigetstr() first argument is a str

2018-04-13 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG483cafc3762a: py3: make sure curses.tigetstr() first argument is a str (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3325?vs

D3328: py3: use b"%d" instead of str() to convert int to bytes

2018-04-13 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG701c261fba83: py3: use b"%d" instead of str() to convert int to bytes (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3328?vs=

D3327: py3: add b'' prefixes to make values bytes

2018-04-13 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG46e705b79323: py3: add b'' prefixes to make values bytes (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3327?vs=8147&id=8202

D3335: wireproto: expose repository formats via capabilities

2018-04-13 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG23c4ddda7bbe: wireproto: expose repository formats via capabilities (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3335?vs=

D3324: py3: use stringutil.forcebytestr() instead of str()

2018-04-13 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGfc114a16a484: py3: use stringutil.forcebytestr() instead of str() (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3324?vs=8144

D3326: py3: use str variables to check keys in request header

2018-04-13 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG83250442dc81: py3: use str variables to check keys in request header (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3326?vs=8

D3329: py3: add b'' prefixes to make values bytes

2018-04-13 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG2a42ca2679e2: py3: add b'' prefixes to make values bytes (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3329?vs=8149&id=8204

D3337: localrepo: add some overlooked strkwargs love for py3

2018-04-13 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/D3337 AFFECTED FILES mercurial/localrepo.py CHANGE DETAILS diff --git a/mercurial/localrepo.py b/mercu

D3336: py3: paper over differences in future exception handling

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY It looks like Python 3's futures library lacks set_exception_info entirely. We'll just give up and use set_exception in that case. 1. no-check-commit because

D3338: py3: two more passing tests

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a reviewer: pulkit. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3338 AFFECTED FILES contrib/python3-whitelist CHANGE DETAILS diff --

D3336: py3: paper over differences in future exception handling

2018-04-13 Thread indygreg (Gregory Szorc)
indygreg accepted this revision. indygreg added a comment. This revision is now accepted and ready to land. Ugh. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3336 To: durin42, #hg-reviewers, indygreg Cc: indygreg, mercurial-devel __

D3337: localrepo: add some overlooked strkwargs love for py3

2018-04-13 Thread indygreg (Gregory Szorc)
indygreg accepted this revision. indygreg added a comment. This revision is now accepted and ready to land. Doh. I got it right everywhere but one place :) REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3337 To: durin42, #hg-reviewers, indygreg Cc: indygreg, mer

D3338: py3: two more passing tests

2018-04-13 Thread durin42 (Augie Fackler)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG726a95a57eeb: py3: two more passing tests (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3338?vs=8207&id=8210 REVISION DETA

D3336: py3: paper over differences in future exception handling

2018-04-13 Thread durin42 (Augie Fackler)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG1cb54e6193a6: py3: paper over differences in future exception handling (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3336?v

D3337: localrepo: add some overlooked strkwargs love for py3

2018-04-13 Thread durin42 (Augie Fackler)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG719b8cb22936: localrepo: add some overlooked strkwargs love for py3 (authored by durin42, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3337?vs=8

D3303: cborutil: implement support for streaming encoding, bytestring decoding

2018-04-13 Thread indygreg (Gregory Szorc)
indygreg planned changes to this revision. indygreg added a comment. I'll probably give this one a little bit more love before I ask for review. We need to at least implement support encoding floats in order to support `-Tcbor`. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.merc

mercurial@37496: 3 new changesets

2018-04-13 Thread Mercurial Commits
3 new changesets in mercurial: https://www.mercurial-scm.org/repo/hg/rev/1ce7a55b09d1 changeset: 37494:1ce7a55b09d1 user:Joerg Sonnenberger date:Sun Apr 08 01:08:43 2018 +0200 summary: revlog: reset _nodepos after strip https://www.mercurial-scm.org/repo/hg/rev/b1fb341d8a61

D3324: py3: use stringutil.forcebytestr() instead of str()

2018-04-13 Thread yuja (Yuya Nishihara)
yuja added a comment. FYI, this one could be just `bytes(e)`. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3324 To: pulkit, #hg-reviewers, durin42 Cc: yuja, mercurial-devel ___ Mercurial-devel mailing list Mercurial-

D3326: py3: use str variables to check keys in request header

2018-04-13 Thread yuja (Yuya Nishihara)
yuja added a comment. Missing `**` ? https://docs.python.org/2.7/library/httplib.html?highlight=putrequest#httplib.HTTPConnection.putrequest REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3326 To: pulkit, #hg-reviewers, durin42 Cc: yuja, mercurial-devel __

D3303: cborutil: implement support for streaming encoding, bytestring decoding

2018-04-13 Thread yuja (Yuya Nishihara)
yuja added a comment. > FWIW, the more I'm looking at the CBOR code, the more I'm thinking > we will end up having to reinvent the full wheel. Sounds reasonable to me. > We need to at least implement support encoding floats in order to > support -Tcbor. If it's just for dat

D3312: revlog: move shortest() to scmutil.shortesthexnodeidprefix() (API)

2018-04-13 Thread yuja (Yuya Nishihara)
yuja added subscribers: quark, yuja. yuja added a comment. IIRC, @quark said it's in revlog because the implementation may vary depending on storage, such as looking up in radix tree and rewind? REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3312 To: martinvon

Re: [PATCH] dispatch: add a whitelist map of commands to implicitly loaded extensions

2018-04-13 Thread Matt Harbison
On Fri, 13 Apr 2018 15:10:45 -0400, Gregory Szorc wrote: On Fri, Apr 13, 2018 at 6:35 AM, Matt Harbison wrote: > On Apr 13, 2018, at 9:11 AM, Yuya Nishihara wrote: > >> On Thu, 12 Apr 2018 13:35:50 -0400, Matt Harbison wrote: >> # HG changeset patch >> # User Matt Harbison >> # Date 152

Re: [PATCH 2 of 4 V3] revset: disable compat with legacy compat for internal revsets API (API)

2018-04-13 Thread Yuya Nishihara
On Fri, 13 Apr 2018 23:42:19 +0530, Pulkit Goyal wrote: > On Fri, Apr 13, 2018 at 6:33 PM, Yuya Nishihara wrote: > > > > It is (was?) used at least by the directaccess extension. > > > > Pulkit, do we still need the posttreebuildhook? I think the only user was > > the directaccess, and it's in co

Re: [PATCH 2 of 2 V2] revset: skip old style lookup if external whitespace are detected

2018-04-13 Thread Yuya Nishihara
On Fri, 13 Apr 2018 19:56:21 +0200, Feld Boris wrote: > > We love the 'revset(EXPR)' idea and we have a v4 series that is ready > > to send. Can you mark it as "(EXPERIMENTAL)" in case we find a better way to work around the problem? > By re-reading your comments on the V3 series, I realized tha

D3330: py3: make values bytes before passing into server.runservice()

2018-04-13 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG8bacc09814ba: py3: make values bytes before passing into server.runservice() (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3

D3312: revlog: move shortest() to scmutil.shortesthexnodeidprefix() (API)

2018-04-13 Thread martinvonz (Martin von Zweigbergk)
martinvonz added a comment. In https://phab.mercurial-scm.org/D3312#53423, @yuja wrote: > IIRC, @quark said it's in revlog because the implementation may vary > depending on storage, such as looking up in radix tree and rewind? That's reasonable. Perhaps I'll just make shortesth

[PATCH] log: fix crash on empty revision with --copies switch

2018-04-13 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1523630707 -32400 # Fri Apr 13 23:45:07 2018 +0900 # Node ID 775ad61e04e28c49c78c7936d88826a3df024781 # Parent 8bacc09814ba5500d15fb40c472e84cb95ae2f99 log: fix crash on empty revision with --copies switch If a revset is empty, .max() raises

[PATCH 2 of 2] revset: pass in lookup function instead of repo (API)

2018-04-13 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1523678252 -32400 # Sat Apr 14 12:57:32 2018 +0900 # Node ID 3b799d7e0865e9226ef1de1a858b6de08b612472 # Parent 2536edebfeac00856d892847e1afea414ad3a985 revset: pass in lookup function instead of repo (API) And document that it's only for leg

[PATCH 1 of 2] revset: drop support for posttreebuilthook() (API)

2018-04-13 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1523677480 -32400 # Sat Apr 14 12:44:40 2018 +0900 # Node ID 2536edebfeac00856d892847e1afea414ad3a985 # Parent 775ad61e04e28c49c78c7936d88826a3df024781 revset: drop support for posttreebuilthook() (API) AFAIK, the only user was the directacc

[PATCH 2 of 4] logcmdutil: remove unused attribute 'cache' from jsonchangeset printer

2018-04-13 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1523625613 -32400 # Fri Apr 13 22:20:13 2018 +0900 # Node ID 7a8009978a8f5f0a0b34d356fa4f506065f572f8 # Parent 356d01cf53f693c0ff8dd9de49ba85037f57a048 logcmdutil: remove unused attribute 'cache' from jsonchangeset printer Perhaps it's a cop

[PATCH 1 of 4] formatter: convert timestamp to int

2018-04-13 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1523627929 -32400 # Fri Apr 13 22:58:49 2018 +0900 # Node ID 356d01cf53f693c0ff8dd9de49ba85037f57a048 # Parent 3b799d7e0865e9226ef1de1a858b6de08b612472 formatter: convert timestamp to int Spotted while porting jsonchangeset printer to format

[PATCH 3 of 4] logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter

2018-04-13 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1523627234 -32400 # Fri Apr 13 22:47:14 2018 +0900 # Node ID 60b88ab0b4238f95438c3ad2a3c9fc802da84d94 # Parent 7a8009978a8f5f0a0b34d356fa4f506065f572f8 logcmdutil: rewrite jsonchangeset printer to be backed by jsonformatter This is a bit slo

[PATCH 4 of 4] logcmdutil: pass formatter to jsonchangeset as argument

2018-04-13 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1523628432 -32400 # Fri Apr 13 23:07:12 2018 +0900 # Node ID 611a3c98d1b68836b5725a0d97c0ae1f0b3677f6 # Parent 60b88ab0b4238f95438c3ad2a3c9fc802da84d94 logcmdutil: pass formatter to jsonchangeset as argument And rename the class. Now we can

Re: [PATCH 2 of 2] revset: pass in lookup function instead of repo (API)

2018-04-13 Thread Martin von Zweigbergk via Mercurial-devel
On Fri, Apr 13, 2018 at 9:21 PM Yuya Nishihara wrote: > # HG changeset patch > # User Yuya Nishihara > # Date 1523678252 -32400 > # Sat Apr 14 12:57:32 2018 +0900 > # Node ID 3b799d7e0865e9226ef1de1a858b6de08b612472 > # Parent 2536edebfeac00856d892847e1afea414ad3a985 > revset: pass in look

D3343: hgweb: these strings should be sysstrs, not bytes

2018-04-13 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/D3343 AFFECTED FILES mercurial/hgweb/common.py CHANGE DETAILS diff --git a/mercurial/hgweb/common.py b

D3344: url: some bytes/str cleanup where we interface with stdlib funcs

2018-04-13 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/D3344 AFFECTED FILES mercurial/url.py CHANGE DETAILS diff --git a/mercurial/url.py b/mercurial/url.py

D3342: tests: port inline extensions in test-http.t to Python 3

2018-04-13 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/D3342 AFFECTED FILES tests/test-http.t CHANGE DETAILS diff --git a/tests/test-http.t b/tests/test-http

D3349: tests: make sure test-run-tests.t actually runs run-tests.py under Python 3

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY I'm fairly certain it hasn't been until now. Mercifully, there doesn't appear to be any ninja breakage. REPOSITORY rHG Mercurial REVISION DETAIL https://phab

D3347: httppeer: work around API differences on urllib Request objects

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Since this is only a problem in httppeer, I'd rather keep this a local-to-the-module kludge rather than pile more on pycompat. We'll still find it easily to clea

D3346: httppeer: no matter what Python 3 might think, http headers are bytes

2018-04-13 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/D3346 AFFECTED FILES mercurial/httppeer.py CHANGE DETAILS diff --git a/mercurial/httppeer.py b/mercuri

D3348: py3: another three passing

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a reviewer: pulkit. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3348 AFFECTED FILES contrib/python3-whitelist CHANGE DETAILS diff --

D3345: httppeer: fix debug prints to work on Python 3

2018-04-13 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/D3345 AFFECTED FILES mercurial/httppeer.py CHANGE DETAILS diff --git a/mercurial/httppeer.py b/mercuri

D3355: hgweb_mod: inform hgweb class about paths actually being bytes

2018-04-13 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/D3355 AFFECTED FILES mercurial/hgweb/hgweb_mod.py CHANGE DETAILS diff --git a/mercurial/hgweb/hgweb_mo

D3354: hgweb: inform hgweb.hgweb() entrypoint that paths should be bytes

2018-04-13 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/D3354 AFFECTED FILES mercurial/hgweb/__init__.py CHANGE DETAILS diff --git a/mercurial/hgweb/__init__.

D3352: lfcommands: use %d on known-int in format string

2018-04-13 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/D3352 AFFECTED FILES hgext/largefiles/lfcommands.py CHANGE DETAILS diff --git a/hgext/largefiles/lfcom

D3351: py3: fix test-shelve.t on Python 3

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a reviewer: pulkit. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY We get a better error message out of the abort here, which is fine. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.merc

D3350: tests: fix up a couple of minor bytes inconsistencies in run-tests.py

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a reviewer: pulkit. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Only in the automatic bisection code, so fortunately nothing major is amiss. Fixes test-run-tests.t under Python 3. REPOSITORY

D3358: stringutil: teach pprint how to format None

2018-04-13 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/D3358 AFFECTED FILES mercurial/utils/stringutil.py CHANGE DETAILS diff --git a/mercurial/utils/stringu

D3359: stringutil: make b prefixes on string output optional

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY I need this to preserve some behavior in hook.py. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3359 AFFECTED FILES mercurial/uti

D3356: wsgicgi: un-do some prior porting work that is now wrong

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a reviewer: pulkit. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY The Python 3 WSGI behavior is that the environ dict should be full of unicodes. We previously tried Too Hard here, so we unwind th

D3353: tests: port inline cgi script in test-largefiles.t to python 3

2018-04-13 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/D3353 AFFECTED FILES tests/test-largefiles.t CHANGE DETAILS diff --git a/tests/test-largefiles.t b/tes

D3357: tests: update inline extensions in test-bundle2-exchange.t to py3

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY The test doesn't pass for what superficially look like good reasons. We'll need to come back to it later. 1. skip-blame because it's b prefixes and a couple o

D3360: hook: use stringutil.pprint instead of reinventing it

2018-04-13 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/D3360 AFFECTED FILES mercurial/hook.py CHANGE DETAILS diff --git a/mercurial/hook.py b/mercurial/hook.

D3364: largefiles: opts appears to already be bytes in this instance

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a reviewer: pulkit. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY test-largefiles.t now passes. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3364 AFFECTED FILES

D3363: tests: port inline extensions in test-hook.t to py3

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This test *almost* passes now, but some import errors print very differently in ways that seem at least somewhat important. REPOSITORY rHG Mercurial REVISION D

D3362: tests: manually print list in test-hook.t

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Changes the output a bit, but not in an important way. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3362 AFFECTED FILES tests/te

D3361: hook: also use pprint on lists for stable output on py2/3

2018-04-13 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/D3361 AFFECTED FILES mercurial/hook.py CHANGE DETAILS diff --git a/mercurial/hook.py b/mercurial/hook.

D3365: commands: drop spurious r'' on dry_run in forget

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Fixes test-add.t on Python 3. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3365 AFFECTED FILES mercurial/commands.py CHANGE DET

D3366: tests: port inline extension in test-http-bundle1.t to py3

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY 1. skip-blame just b prefixes REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D3366 AFFECTED FILES tests/test-http-bundle1.t CHANGE

D3367: hgwebdir: un-bytes the env dict before re-parsing env

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Not the most elegant, but it restores test-subrepo-deep-nested-change.t to passing on Python 3. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercuri

mercurial@37497: new changeset

2018-04-13 Thread Mercurial Commits
New changeset in mercurial: https://www.mercurial-scm.org/repo/hg/rev/1541e1a8e87d changeset: 37497:1541e1a8e87d bookmark:@ tag: tip user:Gregory Szorc date:Fri Apr 06 22:39:58 2018 -0700 summary: filelog: wrap revlog instead of inheriting it (API) -- Repositor

[PATCH] fix: use templater to substitute values in command string

2018-04-13 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1523633439 -32400 # Sat Apr 14 00:30:39 2018 +0900 # Node ID c11220384fc8e9bea55193401835a60d241c372f # Parent 611a3c98d1b68836b5725a0d97c0ae1f0b3677f6 fix: use templater to substitute values in command string bytes.format() isn't supported

D3369: tests: add all missing b prefixes in reactor tests

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a reviewer: pulkit. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Both of these tests now pass on Python 3. 1. skip-blame just b prefixes. So many b prefixes. REPOSITORY rHG Mercurial REVIS

D3368: stringutil: ast.literal_eval needs a unicode on py3

2018-04-13 Thread durin42 (Augie Fackler)
durin42 created this revision. Herald added a reviewer: pulkit. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Fortunately for us, this is really only used internally, so we can be lazy about the encoding here. test-wireproto-framing.py

D3370: scmutil: introduce shortesthexnodeidprefix()

2018-04-13 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY We have scmutil.resolvehexnodeidprefix() for resolving a prefix to a full nodeid, so it makes sense to have the inverse method next to it. For now it just del

D3309: scmutil: rename resolvepartialhexnodeid() to resolvehexnodeidprefix()

2018-04-13 Thread martinvonz (Martin von Zweigbergk)
martinvonz updated this revision to Diff 8247. martinvonz edited the summary of this revision. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3309?vs=8115&id=8247 REVISION DETAIL https://phab.mercurial-scm.org/D3309 AFFECTED FILES hgext/eol.py hgext

D3311: revset: use resolvehexnodeidprefix() in id() predicate (BC)

2018-04-13 Thread martinvonz (Martin von Zweigbergk)
martinvonz updated this revision to Diff 8248. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3311?vs=8117&id=8248 REVISION DETAIL https://phab.mercurial-scm.org/D3311 AFFECTED FILES mercurial/revset.py tests/test-revset.t CHANGE DETAILS diff --gi

D3313: scmutil: make shortesthexnodeidprefix() use unfiltered repo

2018-04-13 Thread martinvonz (Martin von Zweigbergk)
martinvonz updated this revision to Diff 8250. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D3313?vs=8119&id=8250 REVISION DETAIL https://phab.mercurial-scm.org/D3313 AFFECTED FILES hgext/show.py mercurial/scmutil.py mercurial/templatefuncs.py C

<    1   2