Mercurial > public > mercurial-scm > hg-stable
diff mercurial/revlog.py @ 47090:64cd1496bb70
revlog: replace the old `revlog_kind` approach with the new `target` one
The new `target` attribute supersedes the previous one.
Differential Revision: https://phab.mercurial-scm.org/D10353
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 08 Apr 2021 19:00:21 +0200 |
parents | 4c041c71ec01 |
children | 5554aacd783f |
line wrap: on
line diff
--- a/mercurial/revlog.py Tue Apr 06 05:20:24 2021 +0200 +++ b/mercurial/revlog.py Thu Apr 08 19:00:21 2021 +0200 @@ -559,6 +559,10 @@ self._decompressors = {} @util.propertycache + def revlog_kind(self): + return self.target[0] + + @util.propertycache def _compressor(self): engine = util.compengines[self._compengine] return engine.revlogcompressor(self._compengineopts)