revlog: document the `is_inline_index` method
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 19 Sep 2023 22:52:54 +0200
changeset 51002 4ea606568f61
parent 51001 44001e6f04de
child 51003 273434748051
revlog: document the `is_inline_index` method A small docstring does not hurt.
mercurial/revlog.py
--- 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