diff -r 7e6aae033d8d -r 178e50edb4f8 mercurial/changelog.py --- a/mercurial/changelog.py Thu Jan 11 17:52:13 2024 +0100 +++ b/mercurial/changelog.py Thu Jan 11 16:35:52 2024 +0100 @@ -369,8 +369,9 @@ else: new_index_file = self._inner.finalize_pending() self._indexfile = new_index_file - # split when we're done - self._enforceinlinesize(tr, side_write=False) + if self._inline: + msg = 'changelog should not be inline at that point' + raise error.ProgrammingError(msg) def _writepending(self, tr): """create a file containing the unfinalized state for