[PATCH 3 of 3 V2] upgrade: make sure we reclone all revlogs when updating to some format

Yuya Nishihara yuya at tcha.org
Fri Aug 30 23:31:22 EDT 2019


On Wed, 07 Aug 2019 16:29:35 +0200, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at octobus.net>
> # Date 1565018724 -7200
> #      Mon Aug 05 17:25:24 2019 +0200
> # Node ID e585aec755459c4169c2db87b8ffbd523be19f87
> # Parent  acf1937e39ba1db0ab81a14bc0c0082c93df838b
> # EXP-Topic upgrade-select
> # Available At https://bitbucket.org/octobus/mercurial-devel/
> #              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r e585aec75545
> upgrade: make sure we reclone all revlogs when updating to some format

> +# list of requirements that request a clone of all revlog if added/removed
> +RECLONES_REQUIREMENTS = set([
> +    'generaldelta',
> +    localrepo.SPARSEREVLOG_REQUIREMENT,
> +])

Changed to {...} literal.

> +    if revlogs != UPGRADE_ALL_REVLOGS:
> +        incompatible = RECLONES_REQUIREMENTS & (removedreqs | addedreqs)
> +        if incompatible:
> +            msg = _('ignoring revlogs selection flags, format requirement '
> +                    'change: %s')

s/requirement/requirements/, added \n.



More information about the Mercurial-devel mailing list