Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 47153:f58a13c52726
revlog: split the `version` attribute into its two components
The `revlog.version` attribute contained an integer coding 2 different informations:
* the revlog version number
* a bit field defining some specific feature of the revlog
We now explicitly store the two components independently. This avoid exposing
the implementation details all around the code and prepare for future revlog
version that would encode the information in a different way.
In the process we drop the `version` attribute from the interface. It was
flagged for removal when that interface was created.
Differential Revision: https://phab.mercurial-scm.org/D10565
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 May 2021 12:20:45 +0200 |
parents | c261899fb282 |
children | e96f75857361 |
comparison
equal
deleted
inserted
replaced
47152:bc138f2a2e47 | 47153:f58a13c52726 |
---|---|
2970 clen, | 2970 clen, |
2971 ) | 2971 ) |
2972 ) | 2972 ) |
2973 return 0 | 2973 return 0 |
2974 | 2974 |
2975 v = r.version | 2975 format = r._format_version |
2976 format = v & 0xFFFF | 2976 v = r._format_flags |
2977 flags = [] | 2977 flags = [] |
2978 gdelta = False | 2978 gdelta = False |
2979 if v & revlog.FLAG_INLINE_DATA: | 2979 if v & revlog.FLAG_INLINE_DATA: |
2980 flags.append(b'inline') | 2980 flags.append(b'inline') |
2981 if v & revlog.FLAG_GENERALDELTA: | 2981 if v & revlog.FLAG_GENERALDELTA: |