Mercurial > public > mercurial-scm > hg-stable
diff mercurial/unionrepo.py @ 51034:498afb627f78
revlog: move configuration attribute into dedicated object
First this make things clearer as the number of configuration attributes has
grown out of control, so gathering them make things clearer.
Second, this will make future sharing them at different level simpler.
Third it will allow us to make initialisation and temporary override simpler
soon.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 10 Oct 2023 10:02:05 +0200 |
parents | f70ce1aedbcb |
children | 861fe9273d57 |
line wrap: on
line diff
--- a/mercurial/unionrepo.py Tue Oct 10 10:01:57 2023 +0200 +++ b/mercurial/unionrepo.py Tue Oct 10 10:02:05 2023 +0200 @@ -213,6 +213,15 @@ self, opener, self._revlog.radix, manifest2, linkmapper ) + # XXX small hack to work around the use of manifest.manifestrevlog + @property + def _generaldelta(self): + return self._revlog.delta_config.general_delta + + @_generaldelta.setter + def _generaldelta(self, value): + self._revlog.delta_config.general_delta = value + class unionfilelog(filelog.filelog): def __init__(self, opener, path, opener2, linkmapper, repo):