changeset 51164:962974a5d068 stable

revlog: add one more assert about state of thing when splitting This assert is currently happy, but it does not hurt to adds it to clarify expected state and catch potential error in the future.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 06 Dec 2023 15:38:15 +0100
parents 3e2a878fb96f
children 66417f55ea33
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Sat Dec 02 02:13:23 2023 +0100
+++ b/mercurial/revlog.py	Wed Dec 06 15:38:15 2023 +0100
@@ -783,6 +783,7 @@
 
     def split_inline(self, tr, header, new_index_file_path=None):
         """split the data of an inline revlog into an index and a data file"""
+        assert self._delay_buffer is None
         existing_handles = False
         if self._writinghandles is not None:
             existing_handles = True