[PATCH 2 of 2 "] storage: introduce a `revlog.reuse-external-delta` config

Yuya Nishihara yuya at tcha.org
Fri Mar 1 20:00:33 EST 2019


On Wed, 27 Feb 2019 13:26:28 +0100, Pierre-Yves David wrote:
> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david at octobus.net>
> # Date 1551267618 -3600
> #      Wed Feb 27 12:40:18 2019 +0100
> # Node ID d1df36a5e877119ca96134b0ee2e886c32f40c38
> # Parent  ed7aebbee814840433cf40ce02aecde83d6129c1
> # EXP-Topic delta-control
> # Available At https://bitbucket.org/octobus/mercurial-devel/
> #              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r d1df36a5e877
> storage: introduce a `revlog.reuse-external-delta` config

Fixed typos and queued, thanks.

> diff --git a/mercurial/revlog.py b/mercurial/revlog.py
> --- a/mercurial/revlog.py
> +++ b/mercurial/revlog.py
> @@ -410,7 +410,10 @@ class revlog(object):
>              self._maxchainlen = opts['maxchainlen']
>          if 'deltabothparents' in opts:
>              self._deltabothparents = opts['deltabothparents']
> -        self._lazydeltabase = bool(opts.get('lazydeltabase', False))
> +        self._lazydelta = bool(opts.get('lazydelta', True))
> +        self._lazydeltabase = False

We might have to backup/restore new attribute in revlog.clone().


More information about the Mercurial-devel mailing list