Oxidizing Mercurial (Using Rust)

2017-12-03 Thread Gregory Szorc
A number of people have expressed an interest in using Rust in Mercurial. (Facebook is already using Rust for the Mononoke Mercurial server and extensions in the hg-experimental repo. But we still don't have any Rust in core.) I recently typed up https://www.mercurial-scm.org/wiki/OxidationPlan. I

D1581: [RFC] rust: Rust implementation of `hg` and standalone packaging

2017-12-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY This commit demonstrates the feasibility of integrating Rust into Mercurial. There are two significant components of this commit: 1. Establish a Rust `h

D1580: setup: only write some autogenerated files if they change

2017-12-03 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Without this change, setup.py always writes some files on every invocation. This prevents some builds from being a no-op when they should. And, since times can

Re: [PATCH 2 of 2] cat: do not instantiate subrepo if no potential match in it

2017-12-03 Thread Matt Harbison
On Mon, 27 Nov 2017 07:35:04 -0500, Yuya Nishihara wrote: On Sun, 26 Nov 2017 20:11:25 -0500, Matt Harbison wrote: On Sun, 26 Nov 2017 05:38:53 -0500, Yuya Nishihara wrote: > On Sat, 25 Nov 2017 23:53:45 -0500, Matt Harbison wrote: >> It's probably beyond the scope of what you were fixing,

D1577: localrepo: fix cache repo._filteredrepotypes by adding filtername in key

2017-12-03 Thread quark (Jun Wu)
quark added a comment. In https://phab.mercurial-scm.org/D1577#26870, @yuja wrote: > Sorry I can't see why we need a separate "type" object in this example. > Isn't that effectively a cache of filtered instances? Alternatively, "visible exception revs" could be stored as `unfi.

Re: [PATCH 1 of 2] cat: record the current behavior of wildcard matches in subrepos

2017-12-03 Thread Matt Harbison
On Sun, 03 Dec 2017 05:22:51 -0500, Yuya Nishihara wrote: On Sun, 26 Nov 2017 19:26:24 +0900, Yuya Nishihara wrote: On Sat, 25 Nov 2017 23:37:16 -0500, Matt Harbison wrote: > On Sat, 25 Nov 2017 02:35:03 -0500, Yuya Nishihara wrote: > > > # HG changeset patch > > # User Yuya Nishihara > >

Re: [PATCH] hgweb: display fate of obsolete changesets

2017-12-03 Thread Boris Feld
Catching back on my emails. I thought obsfateprinter was not dependent on the template system but I was wrong. It doesn't seems too hard to make obsfate printer independent of the templating system. Just checking that we are all on the same page, should we update the current obsfateprinter to man

Re: [PATCH 2 of 5] tests: add a substitution for ENOENT/ERROR_FILE_NOT_FOUND messages

2017-12-03 Thread Matt Harbison
On Sun, 03 Dec 2017 03:59:37 -0500, Yuya Nishihara wrote: On Sun, 03 Dec 2017 01:54:55 -0500, Matt Harbison wrote: # HG changeset patch # User Matt Harbison # Date 1512261214 18000 # Sat Dec 02 19:33:34 2017 -0500 # Node ID 8e58a105a6fc156673e852ec9a40f2d517fc7ceb # Parent c65000767eec5

Re: [PATCH 1 of 2] cat: record the current behavior of wildcard matches in subrepos

2017-12-03 Thread Yuya Nishihara
On Sun, 26 Nov 2017 19:26:24 +0900, Yuya Nishihara wrote: > On Sat, 25 Nov 2017 23:37:16 -0500, Matt Harbison wrote: > > On Sat, 25 Nov 2017 02:35:03 -0500, Yuya Nishihara wrote: > > > > > # HG changeset patch > > > # User Yuya Nishihara > > > # Date 1511591374 -32400 > > > # Sat Nov 25 15:

D1557: py3: use encoding.strtolocal() to convert string to bytes

2017-12-03 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes. Closed by commit rHGd4b108fdf423: py3: use encoding.strtolocal() to convert string to bytes (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D1557?v

D1556: py3: use pycompat.bytestr() or '%d' in place of str()

2017-12-03 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG4ee493ea1c13: py3: use pycompat.bytestr() or '%d' in place of str() (authored by pulkit, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D1556?vs=40

D1577: localrepo: fix cache repo._filteredrepotypes by adding filtername in key

2017-12-03 Thread yuja (Yuya Nishihara)
yuja added a comment. In https://phab.mercurial-scm.org/D1577#26858, @quark wrote: > Yes. I think the proxy class can have all states related to the filter. For example, `unfi.filteredrevcache[filtername]` could be `unfi._filteredrepotypes[typename + filtername]._revcache`. Sorry

Re: [PATCH 1 of 5] tests: trivial fixes for Windows

2017-12-03 Thread Yuya Nishihara
On Sun, 03 Dec 2017 01:54:54 -0500, Matt Harbison wrote: > # HG changeset patch > # User Matt Harbison > # Date 1512255173 18000 > # Sat Dec 02 17:52:53 2017 -0500 > # Node ID c65000767eec5a1a159c73cd2fe7b6741a1dea84 > # Parent bfd072c52e03cc14bd2b36bd982c15b5029e6fa8 > tests: trivial fixes

Re: [PATCH 2 of 5] tests: add a substitution for ENOENT/ERROR_FILE_NOT_FOUND messages

2017-12-03 Thread Yuya Nishihara
On Sun, 03 Dec 2017 01:54:55 -0500, Matt Harbison wrote: > # HG changeset patch > # User Matt Harbison > # Date 1512261214 18000 > # Sat Dec 02 19:33:34 2017 -0500 > # Node ID 8e58a105a6fc156673e852ec9a40f2d517fc7ceb > # Parent c65000767eec5a1a159c73cd2fe7b6741a1dea84 > tests: add a substitu

Re: [PATCH v6] cmdutil: add within-line color diff capacity

2017-12-03 Thread Yuya Nishihara
On Sat, 02 Dec 2017 21:51:33 +0900, matthieu.laneuvi...@octobus.net wrote: > # HG changeset patch > # User Matthieu Laneuville > # Date 1508944418 -32400 > # Thu Oct 26 00:13:38 2017 +0900 > # Node ID 2cd53502aa3a206eed18d1c13ee294b418fb43c5 > # Parent 3da4bd50103daab5419fc796d0c62470bab6da0