comparison mercurial/revlog.py @ 51115:98910135a3bc

branching: merge stable into default
author Rapha?l Gom?s <rgomes@octobus.net>
date Mon, 06 Nov 2023 17:12:04 +0100
parents 0250e45040f1 315c74911993
children d8f65fc72e7b c136c797740e
comparison
equal deleted inserted replaced
51108:5ae05937b98f 51115:98910135a3bc
1277 _flagserrorclass = error.RevlogError 1277 _flagserrorclass = error.RevlogError
1278 1278
1279 @staticmethod 1279 @staticmethod
1280 def is_inline_index(header_bytes): 1280 def is_inline_index(header_bytes):
1281 """Determine if a revlog is inline from the initial bytes of the index""" 1281 """Determine if a revlog is inline from the initial bytes of the index"""
1282 if len(header_bytes) == 0:
1283 return True
1284
1282 header = INDEX_HEADER.unpack(header_bytes)[0] 1285 header = INDEX_HEADER.unpack(header_bytes)[0]
1283 1286
1284 _format_flags = header & ~0xFFFF 1287 _format_flags = header & ~0xFFFF
1285 _format_version = header & 0xFFFF 1288 _format_version = header & 0xFFFF
1286 1289