Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 51057: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 |
comparison
equal
deleted
inserted
replaced
51056:47d43efda8b7 | 51057:f71f07a679b4 |
---|---|
2075 else: | 2075 else: |
2076 return rev - 1 | 2076 return rev - 1 |
2077 | 2077 |
2078 def issnapshot(self, rev): | 2078 def issnapshot(self, rev): |
2079 """tells whether rev is a snapshot""" | 2079 """tells whether rev is a snapshot""" |
2080 if not self._sparserevlog: | 2080 if not self.delta_config.sparse_revlog: |
2081 return self.deltaparent(rev) == nullrev | 2081 return self.deltaparent(rev) == nullrev |
2082 elif hasattr(self.index, 'issnapshot'): | 2082 elif hasattr(self.index, 'issnapshot'): |
2083 # directly assign the method to cache the testing and access | 2083 # directly assign the method to cache the testing and access |
2084 self.issnapshot = self.index.issnapshot | 2084 self.issnapshot = self.index.issnapshot |
2085 return self.issnapshot(rev) | 2085 return self.issnapshot(rev) |