Mercurial > hg
changeset 51068:41c73325af52
revlog: deprecate the compatibility config property
Now that core is no longer use them, we can deprecated them.
Let us aim at removing them in the next version.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 10 Oct 2023 10:47:46 +0200 |
parents | 26dcdbe15024 |
children | a63e1f7987a7 |
files | mercurial/revlog.py |
diffstat | 1 files changed, 73 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Tue Oct 10 12:03:02 2023 +0200 +++ b/mercurial/revlog.py Tue Oct 10 10:47:46 2023 +0200 @@ -492,106 +492,179 @@ @property def _generaldelta(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.delta_config.general_delta", b"6.6", stacklevel=2 + ) return self.delta_config.general_delta @property def _checkambig(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.data_config.checkambig", b"6.6", stacklevel=2 + ) return self.data_config.check_ambig @property def _mmaplargeindex(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.data_config.mmap_large_index", b"6.6", stacklevel=2 + ) return self.data_config.mmap_large_index @property def _censorable(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.feature_config.censorable", b"6.6", stacklevel=2 + ) return self.feature_config.censorable @property def _chunkcachesize(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.data_config.chunk_cache_size", b"6.6", stacklevel=2 + ) return self.data_config.chunk_cache_size @property def _maxchainlen(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.delta_config.max_chain_len", b"6.6", stacklevel=2 + ) return self.delta_config.max_chain_len @property def _deltabothparents(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.delta_config.delta_both_parents", b"6.6", stacklevel=2 + ) return self.delta_config.delta_both_parents @property def _candidate_group_chunk_size(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.delta_config.candidate_group_chunk_size", + b"6.6", + stacklevel=2, + ) return self.delta_config.candidate_group_chunk_size @property def _debug_delta(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.delta_config.debug_delta", b"6.6", stacklevel=2 + ) return self.delta_config.debug_delta @property def _compengine(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.feature_config.compression_engine", + b"6.6", + stacklevel=2, + ) return self.feature_config.compression_engine @property def _compengineopts(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.feature_config.compression_engine_options", + b"6.6", + stacklevel=2, + ) return self.feature_config.compression_engine_options @property def _maxdeltachainspan(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.delta_config.max_deltachain_span", b"6.6", stacklevel=2 + ) return self.delta_config.max_deltachain_span @property def _withsparseread(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.data_config.with_sparse_read", b"6.6", stacklevel=2 + ) return self.data_config.with_sparse_read @property def _sparserevlog(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.delta_config.sparse_revlog", b"6.6", stacklevel=2 + ) return self.delta_config.sparse_revlog @property def hassidedata(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.feature_config.has_side_data", b"6.6", stacklevel=2 + ) return self.feature_config.has_side_data @property def _srdensitythreshold(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.data_config.sr_density_threshold", + b"6.6", + stacklevel=2, + ) return self.data_config.sr_density_threshold @property def _srmingapsize(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.data_config.sr_min_gap_size", b"6.6", stacklevel=2 + ) return self.data_config.sr_min_gap_size @property def _compute_rank(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.feature_config.compute_rank", b"6.6", stacklevel=2 + ) return self.feature_config.compute_rank @property def canonical_parent_order(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.feature_config.canonical_parent_order", + b"6.6", + stacklevel=2, + ) return self.feature_config.canonical_parent_order @property def _lazydelta(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.delta_config.lazy_delta", b"6.6", stacklevel=2 + ) return self.delta_config.lazy_delta @property def _lazydeltabase(self): """temporary compatibility proxy""" + util.nouideprecwarn( + b"use revlog.delta_config.lazy_delta_base", b"6.6", stacklevel=2 + ) return self.delta_config.lazy_delta_base def _init_opts(self):