# HG changeset patch # User Pierre-Yves David # Date 1701873495 -3600 # Node ID 962974a5d0685494f06dcb9b7d0473871ed8f1ef # Parent 3e2a878fb96f5d3d16214f0e4925bd5cadbd6e43 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. diff -r 3e2a878fb96f -r 962974a5d068 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