--- a/mercurial/changelog.py Tue Jun 11 03:05:20 2024 +0200
+++ b/mercurial/changelog.py Wed Jun 12 02:15:20 2024 +0200
@@ -357,8 +357,10 @@
if new_index is not None:
self._indexfile = new_index
tr.registertmp(new_index)
- tr.addpending(b'cl-%i' % id(self), self._writepending)
- tr.addfinalize(b'cl-%i' % id(self), self._finalize)
+ # use "000" as prefix to make sure we run before the spliting of legacy
+ # inline changelog..
+ tr.addpending(b'000-cl-%i' % id(self), self._writepending)
+ tr.addfinalize(b'000-cl-%i' % id(self), self._finalize)
def _finalize(self, tr):
"""finalize index updates"""