mercurial/changelog.py
changeset 51639 69c5f8d6c710
parent 51455 ec8c1d0f6d48
parent 51634 3cf9e52f5e27
child 51725 278af66e6595
--- a/mercurial/changelog.py	Wed Sep 06 18:23:32 2023 +0200
+++ b/mercurial/changelog.py	Wed Jun 12 11:29:11 2024 +0200
@@ -360,8 +360,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"""