Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 51161: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 | e9eac01c57f3 |
children | 66417f55ea33 |
comparison
equal
deleted
inserted
replaced
51156:3e2a878fb96f | 51161:962974a5d068 |
---|---|
781 atomictemp=True, | 781 atomictemp=True, |
782 ) | 782 ) |
783 | 783 |
784 def split_inline(self, tr, header, new_index_file_path=None): | 784 def split_inline(self, tr, header, new_index_file_path=None): |
785 """split the data of an inline revlog into an index and a data file""" | 785 """split the data of an inline revlog into an index and a data file""" |
786 assert self._delay_buffer is None | |
786 existing_handles = False | 787 existing_handles = False |
787 if self._writinghandles is not None: | 788 if self._writinghandles is not None: |
788 existing_handles = True | 789 existing_handles = True |
789 fp = self._writinghandles[0] | 790 fp = self._writinghandles[0] |
790 fp.flush() | 791 fp.flush() |