diff mercurial/localrepo.py @ 50284:a43f0562220c stable

undo-files: have the transaction directly tracks and manages journal rename This is much simpler this way.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 06 Mar 2023 19:22:34 +0100
parents f34887316f1f
children 473103758373
line wrap: on
line diff
--- a/mercurial/localrepo.py	Mon Mar 06 19:19:27 2023 +0100
+++ b/mercurial/localrepo.py	Mon Mar 06 19:22:34 2023 +0100
@@ -2583,6 +2583,8 @@
             checkambigfiles=_cachedfiles,
             name=desc,
         )
+        for vfs_id, path in self._journalfiles():
+            tr.add_journal(vfs_id, path)
         tr.changes[b'origrepolen'] = len(self)
         tr.changes[b'obsmarkers'] = set()
         tr.changes[b'phases'] = []