[PATCH 4 of 5] templater: move hybrid class and functions to templateutil module

2018-03-09 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1520518509 -32400 # Thu Mar 08 23:15:09 2018 +0900 # Node ID c22e2d75938bc761554c8da98a49b85aa6bff0de # Parent dc412296cebd7c33cbae3b7ed5b0974186105387 templater: move hybrid class and functions to templateutil module And

[PATCH 2 of 5] templater: extract template evaluation utility to new module

2018-03-09 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1520516004 -32400 # Thu Mar 08 22:33:24 2018 +0900 # Node ID aac4772ff9b50425be5dd17ede58d2edb2a53699 # Parent 31bdcdeece08af24761fd359f48766c7274cf71a templater: extract template evaluation utility to new module Prepares for

[PATCH 1 of 5] templater: move function table to the "context" object

2018-03-09 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1520515236 -32400 # Thu Mar 08 22:20:36 2018 +0900 # Node ID 31bdcdeece08af24761fd359f48766c7274cf71a # Parent 168badbb03b574d2a77ae503d3b77709c68e0537 templater: move function table to the "context" object Prepares for

[PATCH 3 of 5] templater: move stringify() to templateutil module

2018-03-09 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1520518246 -32400 # Thu Mar 08 23:10:46 2018 +0900 # Node ID dc412296cebd7c33cbae3b7ed5b0974186105387 # Parent aac4772ff9b50425be5dd17ede58d2edb2a53699 templater: move stringify() to templateutil module As we have a util

[PATCH 8 of 8] py3: drop encoding.strio()

2018-03-09 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1520325797 21600 # Tue Mar 06 02:43:17 2018 -0600 # Node ID 168badbb03b574d2a77ae503d3b77709c68e0537 # Parent 5ee522c20bc23701248014fa18e90f691f00aec8 py3: drop encoding.strio() Its buffered nature makes TextIOWrapper

[PATCH 4 of 8] util: add public isstdin/isstdout() functions

2018-03-09 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1520324939 21600 # Tue Mar 06 02:28:59 2018 -0600 # Node ID 10e3ea3d8b1dc671f6302ebed4489773c7d79458 # Parent c9ac3a3b0a31abc37a76e5ae3be1b5f14a206cf3 util: add public isstdin/isstdout() functions diff --git

[PATCH 2 of 8] ui: inline util.bytesinput() into ui._readline()

2018-03-09 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1520324051 21600 # Tue Mar 06 02:14:11 2018 -0600 # Node ID 0fc636a6f20d51e813b9117961ad18f0eb5f83fb # Parent f7d9876d750e048b4c0e0ec0682928e86a8e8ecb ui: inline util.bytesinput() into ui._readline() Prepares for rework of

[PATCH 5 of 8] ui: do not try readline support if fin/fout aren't standard streams

2018-03-09 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1520325146 21600 # Tue Mar 06 02:32:26 2018 -0600 # Node ID 63a13b91e1ab4d9fa0a713935be58794b9cadab5 # Parent 10e3ea3d8b1dc671f6302ebed4489773c7d79458 ui: do not try readline support if fin/fout aren't standard streams It's

[PATCH 3 of 8] ui: add debug commands to test interactive prompt

2018-03-09 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1520327149 21600 # Tue Mar 06 03:05:49 2018 -0600 # Node ID c9ac3a3b0a31abc37a76e5ae3be1b5f14a206cf3 # Parent 0fc636a6f20d51e813b9117961ad18f0eb5f83fb ui: add debug commands to test interactive prompt Interactive operations

[PATCH 7 of 8] ui: adjust Windows workaround to new _readline() code

2018-03-09 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1520325757 21600 # Tue Mar 06 02:42:37 2018 -0600 # Node ID 5ee522c20bc23701248014fa18e90f691f00aec8 # Parent ad7ff97565b261d82952acc9f941e5dd99f11374 ui: adjust Windows workaround to new _readline() code It's only needed

[PATCH 1 of 8] hgk: stop using util.bytesinput() to read a single line from stdin

2018-03-09 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1520323525 21600 # Tue Mar 06 02:05:25 2018 -0600 # Node ID f7d9876d750e048b4c0e0ec0682928e86a8e8ecb # Parent b434965f984eff168a7caaa239277b15729bd0b1 hgk: stop using util.bytesinput() to read a single line from stdin Appears

[PATCH 6 of 8] ui: do not use rawinput() when we have to replace sys.stdin/stdout

2018-03-09 Thread Yuya Nishihara
# HG changeset patch # User Yuya Nishihara # Date 1520325533 21600 # Tue Mar 06 02:38:53 2018 -0600 # Node ID ad7ff97565b261d82952acc9f941e5dd99f11374 # Parent 63a13b91e1ab4d9fa0a713935be58794b9cadab5 ui: do not use rawinput() when we have to replace sys.stdin/stdout See the

D2057: rust implementation of hg status

2018-03-09 Thread yuja (Yuya Nishihara)
yuja added a comment. >> Reading that page it seems to claim that filenames should be utf8, not bytes. If utf8, this is what the code does, but if it is bytes that definitely won't work. > > IIRC it's bytes everyplace except Windows, where we pretend utf8 is real? It's MBCS (i.e.

D2639: thirdparty: start vendoring cbor python library

2018-03-09 Thread pulkit (Pulkit Goyal)
pulkit added a comment. The library imported in this patch has known bugs and can result in segfaults when given nested structures. Also this library is unmaintained and does not supports sets. Therefore, we import a better maintained library which handles all the cases pretty well. This is

D2590: cbor: add a __init__.py to top level cbor module

2018-03-09 Thread pulkit (Pulkit Goyal)
pulkit abandoned this revision. pulkit added a comment. Superseded by https://phab.mercurial-scm.org/D2752. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2590 To: pulkit, #hg-reviewers Cc: durin42, mercurial-devel

D2640: cbor: remove tests files and fix core's test-check*

2018-03-09 Thread pulkit (Pulkit Goyal)
pulkit abandoned this revision. pulkit added a comment. Superseded by https://phab.mercurial-scm.org/D2751. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2640 To: pulkit, #hg-reviewers Cc: durin42, mercurial-devel

D2594: graft: move logic to read current graft state file in state.py

2018-03-09 Thread pulkit (Pulkit Goyal)
pulkit updated this revision to Diff 6760. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2594?vs=6619=6760 REVISION DETAIL https://phab.mercurial-scm.org/D2594 AFFECTED FILES mercurial/commands.py mercurial/state.py CHANGE DETAILS diff --git

D2595: graft: start using the new state file

2018-03-09 Thread pulkit (Pulkit Goyal)
pulkit updated this revision to Diff 6761. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2595?vs=6620=6761 REVISION DETAIL https://phab.mercurial-scm.org/D2595 AFFECTED FILES mercurial/commands.py CHANGE DETAILS diff --git a/mercurial/commands.py

D2750: thirdparty: start vendoring cbor python library

2018-03-09 Thread pulkit (Pulkit Goyal)
pulkit created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY CBOR stands for Concise Binary Object Representation, which is a data format which is very compact and extensible. This patch moves the python library which

D2751: cbor: remove unrequired files and fix core test-check*

2018-03-09 Thread pulkit (Pulkit Goyal)
pulkit created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This patch removes the unrequired files from the cbor library which are docs/, tests/, setup.py, setup.cfg, tox.ini. Also, this patch fixes couple of

D2752: cbor: add a __init__.py to top level cbor module

2018-03-09 Thread pulkit (Pulkit Goyal)
pulkit created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This patch also fixes import in cbor2/ to make them relative. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D2752 AFFECTED FILES

D2593: state: add logic to parse the state file in old way if cbor fails

2018-03-09 Thread pulkit (Pulkit Goyal)
pulkit updated this revision to Diff 6759. REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D2593?vs=6618=6759 REVISION DETAIL https://phab.mercurial-scm.org/D2593 AFFECTED FILES mercurial/state.py CHANGE DETAILS diff --git a/mercurial/state.py

<    1   2