Mercurial > hg
changeset 47172:93c2e6cdbd01
revlog: use `_format_flags` to access flags instead of `header`
It seems better to reuse the variable we carefully extracted
This also open the way to more flexible way to retrieve these flags.
Differential Revision: https://phab.mercurial-scm.org/D10598
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 May 2021 12:26:27 +0200 |
parents | 729668105901 |
children | ef7a8a1622ad |
files | mercurial/revlog.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlog.py Mon May 03 12:26:17 2021 +0200 +++ b/mercurial/revlog.py Mon May 03 12:26:27 2021 +0200 @@ -510,8 +510,8 @@ % (flags >> 16, fmt, self.display_id) ) - self._inline = header & FLAG_INLINE_DATA - self._generaldelta = header & FLAG_GENERALDELTA + self._inline = self._format_flags & FLAG_INLINE_DATA + self._generaldelta = self._format_flags & FLAG_GENERALDELTA elif fmt == REVLOGV2: if flags & ~REVLOGV2_FLAGS: