changeset 51002:4ea606568f61

revlog: document the `is_inline_index` method A small docstring does not hurt.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 19 Sep 2023 22:52:54 +0200
parents 44001e6f04de
children 273434748051
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Wed Oct 11 15:15:28 2023 +0200
+++ b/mercurial/revlog.py	Tue Sep 19 22:52:54 2023 +0200
@@ -291,6 +291,7 @@
 
     @staticmethod
     def is_inline_index(header_bytes):
+        """Determine if a revlog is inline from the initial bytes of the index"""
         header = INDEX_HEADER.unpack(header_bytes)[0]
 
         _format_flags = header & ~0xFFFF