revlog: add one more assert about state of thing when splitting stable
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 06 Dec 2023 15:38:15 +0100
branchstable
changeset 51164 962974a5d068
parent 51159 3e2a878fb96f
child 51165 66417f55ea33
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.
mercurial/revlog.py
--- 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