diff mercurial/localrepo.py @ 50193:ab806355fccb

transaction: no longer explicitly cache phaseroots The transaction file generation is already dealing with the backup for this. So, no need to duplicate such backup.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 22 Feb 2023 18:58:02 +0100
parents 39256bee2ed9
children 8fb391363aad
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Feb 23 04:28:24 2023 +0100
+++ b/mercurial/localrepo.py	Wed Feb 22 18:58:02 2023 +0100
@@ -2688,7 +2688,6 @@
             (self.vfs, b'journal.branch'),
             (self.vfs, b'journal.desc'),
             (bookmarks.bookmarksvfs(self), b'journal.bookmarks'),
-            (self.svfs, b'journal.phaseroots'),
         )
 
     def undofiles(self):
@@ -2704,7 +2703,6 @@
         bookmarksvfs.write(
             b"journal.bookmarks", bookmarksvfs.tryread(b"bookmarks")
         )
-        self.svfs.write(b"journal.phaseroots", self.svfs.tryread(b"phaseroots"))
 
     def recover(self):
         with self.lock():
@@ -2798,8 +2796,6 @@
             bookmarksvfs.rename(
                 b'undo.bookmarks', b'bookmarks', checkambig=True
             )
-        if self.svfs.exists(b'undo.phaseroots'):
-            self.svfs.rename(b'undo.phaseroots', b'phaseroots', checkambig=True)
         self.invalidate()
         self.dirstate.invalidate()