Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlog.py @ 51065:f71f07a679b4
revlog: remove legacy usage of `_sparserevlog`
All core code is now getting the setting from the DeltaConfig object.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 10 Oct 2023 11:27:39 +0200 |
parents | 47d43efda8b7 |
children | 7c2dc75cdc0f |
line wrap: on
line diff
--- a/mercurial/revlog.py Tue Oct 10 11:24:37 2023 +0200 +++ b/mercurial/revlog.py Tue Oct 10 11:27:39 2023 +0200 @@ -2077,7 +2077,7 @@ def issnapshot(self, rev): """tells whether rev is a snapshot""" - if not self._sparserevlog: + if not self.delta_config.sparse_revlog: return self.deltaparent(rev) == nullrev elif hasattr(self.index, 'issnapshot'): # directly assign the method to cache the testing and access