D9142: rust: move rustfmt.toml to repo root so it can be used by `hg fix`

2020-10-01 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY `hg fix` runs the formatters from the repo root so it doesn't pick up the `rustfmt.toml` configs we had in each the `hg-core`, `hg-cpython`, and `rhg`

D9139: copies: add a HASCOPIESINFO flag to highlight rev with useful data

2020-10-01 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: indygreg. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY If some files changes that may impact copy tracing are detected, we set this flag. This helps the copy tracing algorithm to

D9141: copies: move `merged` testing sooner

2020-10-01 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY previously `is_merged` was an expensive callback. Now that all this data is pre-computed, this is is a simple membership testing. So it is probably

D9140: copies: return None instead of ChangingFiles when relevant

2020-10-01 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY If they are not relevant data, they are no need to fetch them. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL

D9138: rust: update minimum supported Rust compiler version

2020-10-01 Thread Raphaël Gomès
Alphare created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Debian stable backported `rustc 1.41.1` for a Firefox release that needed it, so we can finally update the compiler version to something that isn't more than

mercurial@45559: new changeset (1 on stable)

2020-10-01 Thread Mercurial Commits
New changeset (1 on stable) in mercurial: https://www.mercurial-scm.org/repo/hg/rev/07731064ac41 changeset: 45559:07731064ac41 branch: stable tag: tip parent: 45523:5ed6efedc457 user:Ludovic Chabant date:Tue Sep 29 14:38:46 2020 -0700 summary:

Re: [PATCH] hgweb: don't try to wrap mod_wsgi loggers

2020-10-01 Thread Yuya Nishihara
On Wed, 30 Sep 2020 09:16:27 -0700, Ludovic Chabant wrote: > > It might be better to test isinstance(stream, io.RawIOBase). If the stream > > is a RawIOBase, write() should return the number of bytes written. > > I'm not super familiar with Python C/native extension code, but it doesn't > look

D9137: rust: leverage improved match ergonomics

2020-10-01 Thread Raphaël Gomès
Alphare created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D9137 AFFECTED FILES rust/hg-core/src/dirstate/status.rs CHANGE DETAILS diff

D9136: rust-parsers: use in-place mutation instead of allocating a new `Vec`

2020-10-01 Thread Raphaël Gomès
Alphare created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This is not done for the `dirstate-tree` feature, since it lacks `iter_mut`. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL