D10802: revlogv2: make sure bundling pick a compatible bundle format

2021-05-30 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Before this change, revlog-v2 repository where bundled using the incompatible "v1" format. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL

D10801: censor: do not process sidedata of censored revision while bundling

2021-05-30 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The revision is censored, we should ignore it. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D10801 AFFECTED

bugzilla weekly report (2021-05-31)

2021-05-30 Thread Octobot
Bug activity report, between 2021-05-24 and 2021-05-31 * urgent+: 3 bugs * unconfirmed: 65 bugs (1 added) * new: 2 bugs * closed: 1 bugs * need example: 0 bugs * new details: 0 bugs * active: 29 bugs * long inactive: 5 bugs urgent+ --- Open of urgent or critical bugs. Found 3 bugs

D10797: revlog: move `revisioninfo` in `revlogutils`

2021-05-30 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 We will need it in other utility module. So lets extract it from `revlog.py`, the module is too large already anyway.

D10800: revlog: allow to pass an existing docket to `_loadindex()`

2021-05-30 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 This will be when switching undelying files, for examples during censors and strip operation with rvlog-v2. REPOSITORY rHG

D10798: util: add `nb_bytes` argument to `copyfile` to partially copy a file

2021-05-30 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY When set, this allow to copy only the first `nb_bytes` of a file. This will be useful for censor/strip operation with revlogv2. REPOSITORY rHG Mercurial

D10799: revlog: add a ways to blacklist some revision when searching for a delta

2021-05-30 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 useful to recompute appropriate deltas one the fly during censor/strip operation with revlog-v2. REPOSITORY rHG Mercurial BRANCH default

D10792: revlog: move `offset_type` to `revlogutils`

2021-05-30 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 This multiple module are using this so it make sense to move it at the utility level. REPOSITORY rHG Mercurial BRANCH

D10794: revlog: use the new `entry` function in revlog.py

2021-05-30 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 This just make the construction of the tuple clearer. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL

D10796: revlog: use the `entry` function in bundlerepo

2021-05-30 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY We can use some of the default value again! REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D10796 AFFECTED

D10795: revlog: use entry in revlogv0.py

2021-05-30 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY This make things clearer and we can reply on some of the default value directly. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL

D10791: revlog: move entry documentation alongside new related constants

2021-05-30 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 Accessing individual index-entry element is usually done using integer directly. This is presumably for "performance

D10793: revlog: add a function to build index entry tuple

2021-05-30 Thread marmoute (Pierre-Yves David)
marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY Keeping index entry as tuple make sense for performance reason, however it does not means we need to manually build that tuple for all piece of python code