diff mercurial/bundlerepo.py @ 51402:04111ef08fb0

phases: always write with a repo In the future change that move the internal representation of phase-roots from node-id to rev-num, we will use a repository to translate revision numbers back to node at write time. Since that future change is quite complicated already, we do this small API change beforehand.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 20 Feb 2024 21:38:01 +0100
parents 68289ed170c7
children ac1c75188440
line wrap: on
line diff
--- a/mercurial/bundlerepo.py	Tue Feb 20 17:18:15 2024 +0100
+++ b/mercurial/bundlerepo.py	Tue Feb 20 21:38:01 2024 +0100
@@ -269,7 +269,7 @@
     def _write(self, fp):
         raise NotImplementedError
 
-    def _updateroots(self, phase, newroots, tr):
+    def _updateroots(self, repo, phase, newroots, tr):
         self._phaseroots[phase] = newroots
         self.invalidate()
         self.dirty = True