Re: [1,of,2,RFC] RFC: implement immutable config objects

2017-04-01 Thread Yuya Nishihara
On Sat, 1 Apr 2017 15:56:25 -0700, Jun Wu wrote: > Excerpts from Yuya Nishihara's message of 2017-04-01 23:39:34 +0900: > > > > +yield (section, item, (value, source)) > > > > We might want to keep filename and line number separately in future version. > > Since there are othe

Re: [PATCH 1 of 5 v2] rebase: move destination test to new test file

2017-04-01 Thread Yuya Nishihara
On Thu, 30 Mar 2017 03:50:33 -0700, Ryan McElroy wrote: > # HG changeset patch > # User Ryan McElroy > # Date 1490871010 25200 > # Thu Mar 30 03:50:10 2017 -0700 > # Node ID 9f25299c45b39fbdfc34c0c3ef1c454bcd42ed02 > # Parent 2632df096fc0ac7582382b1f94ea4b9ad0bce8f2 > rebase: move destinatio

Re: [PATCH 1 of 7 V2] run-tests: auto-replace 'TXNID' output

2017-04-01 Thread Yuya Nishihara
On Sat, 01 Apr 2017 00:43:29 +0200, Pierre-Yves David wrote: > # HG changeset patch > # User Pierre-Yves David > # Date 1490887743 -7200 > # Thu Mar 30 17:29:03 2017 +0200 > # Node ID d808e447f5188f30ec37243016536367bfe5b2c0 > # Parent 2632df096fc0ac7582382b1f94ea4b9ad0bce8f2 > # EXP-Topic h

Re: [PATCH 7 of 7] largefiles: use readasstandin() to read hex hash directly from filectx

2017-04-01 Thread Yuya Nishihara
On Sat, 01 Apr 2017 02:41:52 +0900, FUJIWARA Katsunori wrote: > # HG changeset patch > # User FUJIWARA Katsunori > # Date 1490981569 -32400 > # Sat Apr 01 02:32:49 2017 +0900 > # Node ID bd7e74372d5d3763b38717159a805cf557b07604 > # Parent 89507622f5b4cb8b8e9f99a02db43b64f10d95f3 > largefiles

Re: Internal-changeset concept (was: re: [PATCH RFC] repo: add an ability to hide nodes in an appropriate way)

2017-04-01 Thread Jun Wu
IIRC at the sprint that people tend to agree on root based hidden separated from phase root. I was about to ask questions about "strip", and some "obsstore" interaction, but I think the main focus should be in the obsstore thread. So I'd not distract you here. See inline comments, mainly about re

[PATCH 1 of 4] templatefilters: drop callable support from json()

2017-04-01 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1491101209 -32400 # Sun Apr 02 11:46:49 2017 +0900 # Node ID 80483134bdbaeb72809a3e9683a263c7e166b3c8 # Parent 35eb8f112c88669ba3297de16a9acc289aacfdcd templatefilters: drop callable support from json() This backs out ae5447de4c11. A callabl

[PATCH 3 of 4] templatefilters: use list comprehension in json()

2017-04-01 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1491101664 -32400 # Sun Apr 02 11:54:24 2017 +0900 # Node ID eba702fdc933ed84d5f53225bfe87ebc40c7831e # Parent 54017aea6a3b5c7a668f44df4399102b94a9eecd templatefilters: use list comprehension in json() Not important, but the code slightly lo

[PATCH 4 of 4] formatter: use templatefilters.json()

2017-04-01 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1491102137 -32400 # Sun Apr 02 12:02:17 2017 +0900 # Node ID 6deb06584ae481c751b86782e2c8567e4996d04e # Parent eba702fdc933ed84d5f53225bfe87ebc40c7831e formatter: use templatefilters.json() Now _jsonifyobj() is identical to templatefilters.j

[PATCH 2 of 4] templatefilters: unroll handling of None/False/True

2017-04-01 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1491101485 -32400 # Sun Apr 02 11:51:25 2017 +0900 # Node ID 54017aea6a3b5c7a668f44df4399102b94a9eecd # Parent 80483134bdbaeb72809a3e9683a263c7e166b3c8 templatefilters: unroll handling of None/False/True It doesn't make sense to use a dict h

Re: [PATCH] templatefilter: add support for 'long' to json()

2017-04-01 Thread Yuya Nishihara
On Sat, 1 Apr 2017 12:20:02 -0700, Gregory Szorc wrote: > On Sat, Apr 1, 2017 at 11:06 AM, Matt Harbison > wrote: > > > # HG changeset patch > > # User Matt Harbison > > # Date 1491020477 14400 > > # Sat Apr 01 00:21:17 2017 -0400 > > # Node ID a3d441253abc38df20c9890b207c1ab454bb691d > > #

Re: [PATCH] templatefilter: add support for 'long' to json()

2017-04-01 Thread Yuya Nishihara
On Sat, 01 Apr 2017 14:17:33 -0400, Matt Harbison wrote: > On Sat, 01 Apr 2017 14:06:24 -0400, Matt Harbison > wrote: > > > # HG changeset patch > > # User Matt Harbison > > # Date 1491020477 14400 > > # Sat Apr 01 00:21:17 2017 -0400 > > # Node ID a3d441253abc38df20c9890b207c1ab454bb691d

Re: [1,of,2,RFC] RFC: implement immutable config objects

2017-04-01 Thread Jun Wu
Excerpts from Yuya Nishihara's message of 2017-04-01 23:39:34 +0900: > Yea, the idea sounds good and the next patch proves that this actually works. > Nice. Thanks. > > Random nitpicks in line. > > > > +yield (section, item, (value, source)) > > We might want to keep filena

Re: [PATCH] templatefilter: add support for 'long' to json()

2017-04-01 Thread Matt Harbison
On Sat, 01 Apr 2017 15:20:02 -0400, Gregory Szorc wrote: On Sat, Apr 1, 2017 at 11:06 AM, Matt Harbison wrote: # HG changeset patch # User Matt Harbison # Date 1491020477 14400 # Sat Apr 01 00:21:17 2017 -0400 # Node ID a3d441253abc38df20c9890b207c1ab454bb691d # Parent 2632df096fc0a

[PATCH 3 of 9] commands: update help for "bundle"

2017-04-01 Thread Gregory Szorc
# HG changeset patch # User Gregory Szorc # Date 1491079423 25200 # Sat Apr 01 13:43:43 2017 -0700 # Node ID 21f9e3b5f24ec3e9ec7fa00510fce197b443429a # Parent 01ebce23203fb3a7bb0367040a62075df6c275f6 commands: update help for "bundle" We now have a dedicated help topic to describe bundle sp

[PATCH 2 of 9] help: document bundle specifications

2017-04-01 Thread Gregory Szorc
# HG changeset patch # User Gregory Szorc # Date 1491079326 25200 # Sat Apr 01 13:42:06 2017 -0700 # Node ID 01ebce23203fb3a7bb0367040a62075df6c275f6 # Parent 360b42187ffe5efc75ed82dc67bf82937b3d1269 help: document bundle specifications I softly formalized the concept of a "bundle specifica

[PATCH 8 of 9] util: support multi-threaded zstandard compression for bundles

2017-04-01 Thread Gregory Szorc
# HG changeset patch # User Gregory Szorc # Date 1491085720 25200 # Sat Apr 01 15:28:40 2017 -0700 # Node ID c171ff452d36d4caeab1887df4da43e45a61022a # Parent 7f469db35d4a303d53b4c7dc141a8378fa67d9e1 util: support multi-threaded zstandard compression for bundles python-zstandard 0.8.0 expos

[PATCH 1 of 9] util: document bundle compression

2017-04-01 Thread Gregory Szorc
# HG changeset patch # User Gregory Szorc # Date 1491078541 25200 # Sat Apr 01 13:29:01 2017 -0700 # Node ID 360b42187ffe5efc75ed82dc67bf82937b3d1269 # Parent 6be6e4becaafd1bf24f01a2d0464df9cea67588d util: document bundle compression An upcoming patch will add support for documenting bundle

[PATCH 9 of 9] hgweb: support multi-threaded zstandard compression for wire protocol

2017-04-01 Thread Gregory Szorc
# HG changeset patch # User Gregory Szorc # Date 1491085873 25200 # Sat Apr 01 15:31:13 2017 -0700 # Node ID 197776401203a7627167f18481749860f9c69448 # Parent c171ff452d36d4caeab1887df4da43e45a61022a hgweb: support multi-threaded zstandard compression for wire protocol Multi-threaded compre

[PATCH 4 of 9] commands: update help for "unbundle"

2017-04-01 Thread Gregory Szorc
# HG changeset patch # User Gregory Szorc # Date 1491079432 25200 # Sat Apr 01 13:43:52 2017 -0700 # Node ID 5cc2f25b803a0184fdc4e67142b65df752e40284 # Parent 21f9e3b5f24ec3e9ec7fa00510fce197b443429a commands: update help for "unbundle" Similar to the recent change to "bundle," this command

[PATCH 5 of 9] util: validate and extract compression-related bundlespec parameters

2017-04-01 Thread Gregory Szorc
# HG changeset patch # User Gregory Szorc # Date 1491079470 25200 # Sat Apr 01 13:44:30 2017 -0700 # Node ID 62e377f673f3d9e10701d373b82f995085b54363 # Parent 5cc2f25b803a0184fdc4e67142b65df752e40284 util: validate and extract compression-related bundlespec parameters There is currently an

[PATCH 6 of 9] bundle2: use bundlespec parameters to influence compression (API)

2017-04-01 Thread Gregory Szorc
# HG changeset patch # User Gregory Szorc # Date 1491083707 25200 # Sat Apr 01 14:55:07 2017 -0700 # Node ID 2a93bd961ed35579fe3d3772ea6f0d305c8d8ea2 # Parent 62e377f673f3d9e10701d373b82f995085b54363 bundle2: use bundlespec parameters to influence compression (API) The "compopts" argument w

Re: [PATCH] templatefilter: add support for 'long' to json()

2017-04-01 Thread Gregory Szorc
On Sat, Apr 1, 2017 at 11:06 AM, Matt Harbison wrote: > # HG changeset patch > # User Matt Harbison > # Date 1491020477 14400 > # Sat Apr 01 00:21:17 2017 -0400 > # Node ID a3d441253abc38df20c9890b207c1ab454bb691d > # Parent 2632df096fc0ac7582382b1f94ea4b9ad0bce8f2 > templatefilter: add su

Re: [PATCH] templatefilter: add support for 'long' to json()

2017-04-01 Thread Matt Harbison
On Sat, 01 Apr 2017 14:06:24 -0400, Matt Harbison wrote: # HG changeset patch # User Matt Harbison # Date 1491020477 14400 # Sat Apr 01 00:21:17 2017 -0400 # Node ID a3d441253abc38df20c9890b207c1ab454bb691d # Parent 2632df096fc0ac7582382b1f94ea4b9ad0bce8f2 templatefilter: add support f

[PATCH] templatefilter: add support for 'long' to json()

2017-04-01 Thread Matt Harbison
# HG changeset patch # User Matt Harbison # Date 1491020477 14400 # Sat Apr 01 00:21:17 2017 -0400 # Node ID a3d441253abc38df20c9890b207c1ab454bb691d # Parent 2632df096fc0ac7582382b1f94ea4b9ad0bce8f2 templatefilter: add support for 'long' to json() When disabling the '#requires serve' check

Re: [PATCH 5 of 5] ui: use bytes IO and convert EOL manually in ui.editor()

2017-04-01 Thread David Soria Parra
On Sat, Apr 01, 2017 at 07:00:07PM +0900, Yuya Nishihara wrote: > On Fri, 31 Mar 2017 09:52:37 -0700, David Soria Parra wrote: > > On Wed, Mar 29, 2017 at 11:46:41PM +0900, Yuya Nishihara wrote: > > > # HG changeset patch > > > # User Yuya Nishihara > > > # Date 1490791418 -32400 > > > # Wed

Re: [PATCH 1 of 2 V2] formatter: reserve _ prefixed keys as internal and don't render

2017-04-01 Thread Yuya Nishihara
On Wed, 22 Mar 2017 16:21:34 +, Ryan McElroy wrote: > This seems like a good time to bring up by long-held desire for a JSON > template that allows specifying what keys you're interested in. This > would solve this problem more suitably than internal name-munging. > > To expand, -T json is i

Re: [1,of,2,RFC] RFC: implement immutable config objects

2017-04-01 Thread Yuya Nishihara
On Wed, 29 Mar 2017 15:25:26 -0700, David Soria Parra wrote: > On Mon, Mar 27, 2017 at 11:38:06AM -0700, Jun Wu wrote: > > # HG changeset patch > > # User Jun Wu > > # Date 1490635856 25200 > > # Mon Mar 27 10:30:56 2017 -0700 > > # Node ID 4eb7c76340791f379a34f9df4ec42e0c8b9b2a2f > > # Paren

Re: [PATCH V3] show: new extension for displaying various repository data

2017-04-01 Thread Yuya Nishihara
On Fri, 24 Mar 2017 19:31:20 -0700, Gregory Szorc wrote: > # HG changeset patch > # User Gregory Szorc > # Date 1490408340 25200 > # Fri Mar 24 19:19:00 2017 -0700 > # Node ID 42b0afe0f6ebea285569e0061e1eab2fcffb686e > # Parent aea8ec3f7dd1967a05ecce8f779e16f7ad14fdee > show: new extension f

Re: [PATCH v2] fancyopts: making config defaults actually override defaults

2017-04-01 Thread Yuya Nishihara
On Fri, 24 Mar 2017 00:32:00 -0700, Rodrigo Damazio Bovendorp via Mercurial-devel wrote: > # HG changeset patch > # User Rodrigo Damazio > # Date 1490340211 25200 > # Fri Mar 24 00:23:31 2017 -0700 > # Node ID 60b3222e01f96f91ece7eda9681a89bf3bb930a6 > # Parent df82f375fa005b9c71b463182e6b5

Re: [PATCH 5 of 5] ui: use bytes IO and convert EOL manually in ui.editor()

2017-04-01 Thread Yuya Nishihara
On Fri, 31 Mar 2017 09:52:37 -0700, David Soria Parra wrote: > On Wed, Mar 29, 2017 at 11:46:41PM +0900, Yuya Nishihara wrote: > > # HG changeset patch > > # User Yuya Nishihara > > # Date 1490791418 -32400 > > # Wed Mar 29 21:43:38 2017 +0900 > > # Node ID 81aa3738f703e4354b0f853e87548a139b1

[PATCH 6 of 6] hgweb: send aggressive Cache-Control header for immutable requests

2017-04-01 Thread Gregory Szorc
# HG changeset patch # User Gregory Szorc # Date 1491031522 25200 # Sat Apr 01 00:25:22 2017 -0700 # Node ID 2768152f91137977b8dd6332f8932a54451f7445 # Parent a5df20af0f27612eee26f04187bd92b6772a5c7e hgweb: send aggressive Cache-Control header for immutable requests Now that we have HTTP re

[PATCH 3 of 6] tests: store ETag when using --headeronly

2017-04-01 Thread Gregory Szorc
# HG changeset patch # User Gregory Szorc # Date 1491031312 25200 # Sat Apr 01 00:21:52 2017 -0700 # Node ID 4cec8e88d09775ee6478e307e9dde94af5b9fcfd # Parent d20811d936ba24bcfab04ed28d06365b52784ae6 tests: store ETag when using --headeronly Previously, --headeronly would prevent --twice fr

[PATCH 4 of 6] hgweb: introduce staticimmutable web command

2017-04-01 Thread Gregory Szorc
# HG changeset patch # User Gregory Szorc # Date 1491021501 25200 # Fri Mar 31 21:38:21 2017 -0700 # Node ID 0b8be3d244585f5a2874821418fce41bf7631f6c # Parent 4cec8e88d09775ee6478e307e9dde94af5b9fcfd hgweb: introduce staticimmutable web command Currently, hgweb serves HTTP responses with an

[PATCH 2 of 6] hgweb: extract path traversal checking into standalone function

2017-04-01 Thread Gregory Szorc
# HG changeset patch # User Gregory Szorc # Date 1491022046 25200 # Fri Mar 31 21:47:26 2017 -0700 # Node ID d20811d936ba24bcfab04ed28d06365b52784ae6 # Parent f8b9edde1bf2a725d521cbe3deb00b33d088eb6e hgweb: extract path traversal checking into standalone function A common exploit in web app

[PATCH 1 of 6] hgweb: use context manager for file I/O

2017-04-01 Thread Gregory Szorc
# HG changeset patch # User Gregory Szorc # Date 1491024638 25200 # Fri Mar 31 22:30:38 2017 -0700 # Node ID f8b9edde1bf2a725d521cbe3deb00b33d088eb6e # Parent be7965e3afe82be35d258a2cff12b389a857ef88 hgweb: use context manager for file I/O diff --git a/mercurial/hgweb/common.py b/mercurial/