Mercurial > public > mercurial-scm > hg
diff 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 |
line wrap: on
line diff
--- a/mercurial/revlog.py Tue Oct 31 22:42:46 2023 -0700 +++ b/mercurial/revlog.py Mon Nov 06 17:12:04 2023 +0100 @@ -1279,6 +1279,9 @@ @staticmethod def is_inline_index(header_bytes): """Determine if a revlog is inline from the initial bytes of the index""" + if len(header_bytes) == 0: + return True + header = INDEX_HEADER.unpack(header_bytes)[0] _format_flags = header & ~0xFFFF