D10904: censor: split the core of the logic into its own function

2021-06-22 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY We now have a "generic" rewrite function (only able to do censoring for now) and a thin wrapper that implement the `censor` API with it. We are now ready

D10903: censor: migrate the logic to a set of `censor_revs`

2021-06-22 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Instead of considering a special unique censored revision within the code, we consider a set of revision (currently always of size 1). This make the main code

D10902: censor: rename `rl` to `revlog` in the main function

2021-06-22 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Now that the bulk of the code moved to smaller function we are less restricted on line length and we can use more explicite naming. REPOSITORY rHG Mercurial

D10901: censor: extract the part about creating and opening new files in a function

2021-06-22 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The v2_censor function is huge, now that its content has settled a bit it is a good time to split individual part inside dedicated function. The last part

D10896: revlog: rewrite `censors.py` to `rewrite.py`

2021-06-22 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 The logic we use for censoring revision will be mostly common with the one we needs for stripping. So we rename the module

D10900: censor: extract the part about recomputing delta in a function

2021-06-22 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The v2_censor function is huge, now that its content has settled a bit it is a good time to split individual part inside dedicated function. It is now the

D10899: censor: extract the part about writing the other revision in a function

2021-06-22 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The v2_censor function is huge, now that its content has settled a bit it is a good time to split individual part inside dedicated function. We continue

D10898: censor: extract the part about writing the censored revision in a function

2021-06-22 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The v2_censor function is huge, now that its content has settled a bit it is a good time to split individual part inside dedicated function. We start with a

D10897: censor: put the tuple of open files in an explicit variable

2021-06-22 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This will be simpler to pass these file around in future changesets. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL

mercurial@47414: 5 new changesets

2021-06-22 Thread Mercurial Commits
5 new changesets in mercurial: https://www.mercurial-scm.org/repo/hg/rev/65333ecc8b34 changeset: 47410:65333ecc8b34 user:Matt Harbison date:Fri Jun 11 23:50:29 2021 -0400 summary: urlutil: use the deprecation warning function on the `ui` object

D10895: purge: restore the `testedwith` declaration

2021-06-22 Thread mharbison72 (Matt Harbison)
mharbison72 created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Otherwise, this extension gets highlighted as a 3rd party extension when an exception occurs. REPOSITORY rHG Mercurial BRANCH stable REVISION DETAIL

D10894: benchmarks: restore `output` variable lost in D10884

2021-06-22 Thread martinvonz (Martin von Zweigbergk)
martinvonz created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Noticed by pyflakes (which I didn't have installed for Python 3.9 when I sent D10884 ). REPOSITORY rHG Mercurial

Failed pipeline for branch/default | mercurial-devel | 29d364c9

2021-06-22 Thread Heptapod
Pipeline #23465 has failed! Project: mercurial-devel ( https://foss.heptapod.net/octobus/mercurial-devel ) Branch: branch/default ( https://foss.heptapod.net/octobus/mercurial-devel/-/commits/branch/default ) Commit: 29d364c9 (