It seems better to reuse the variable we carefully extracted
This also open the way to more flexible way to retrieve these flags.
( )
indygreg | |
Alphare |
hg-reviewers |
It seems better to reuse the variable we carefully extracted
This also open the way to more flexible way to retrieve these flags.
No Linters Available |
No Unit Test Coverage |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/revlog.py (4 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
0e7e6178aeaf | c6c502da4bf6 | Pierre-Yves David | May 3 2021, 6:26 AM |
elif fmt == REVLOGV1: | elif fmt == REVLOGV1: | ||||
if flags & ~REVLOGV1_FLAGS: | if flags & ~REVLOGV1_FLAGS: | ||||
raise error.RevlogError( | raise error.RevlogError( | ||||
_(b'unknown flags (%#04x) in version %d revlog %s') | _(b'unknown flags (%#04x) in version %d revlog %s') | ||||
% (flags >> 16, fmt, self.display_id) | % (flags >> 16, fmt, self.display_id) | ||||
) | ) | ||||
self._inline = header & FLAG_INLINE_DATA | self._inline = self._format_flags & FLAG_INLINE_DATA | ||||
self._generaldelta = header & FLAG_GENERALDELTA | self._generaldelta = self._format_flags & FLAG_GENERALDELTA | ||||
elif fmt == REVLOGV2: | elif fmt == REVLOGV2: | ||||
if flags & ~REVLOGV2_FLAGS: | if flags & ~REVLOGV2_FLAGS: | ||||
raise error.RevlogError( | raise error.RevlogError( | ||||
_(b'unknown flags (%#04x) in version %d revlog %s') | _(b'unknown flags (%#04x) in version %d revlog %s') | ||||
% (flags >> 16, fmt, self.display_id) | % (flags >> 16, fmt, self.display_id) | ||||
) | ) | ||||