diff mercurial/bundlerepo.py @ 51403:68289ed170c7

phases: mark `phasecache.phaseroots` private We are about to change its content from nodeid to revnum. So anyone directly using the content might be in unexpected troubles. We start by making it private to explicitly break any such user (and discourage them to do so).
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 20 Feb 2024 17:18:15 +0100
parents 8ec2de9c6770
children 04111ef08fb0
line wrap: on
line diff
--- a/mercurial/bundlerepo.py	Tue Feb 20 17:17:54 2024 +0100
+++ b/mercurial/bundlerepo.py	Tue Feb 20 17:18:15 2024 +0100
@@ -270,7 +270,7 @@
         raise NotImplementedError
 
     def _updateroots(self, phase, newroots, tr):
-        self.phaseroots[phase] = newroots
+        self._phaseroots[phase] = newroots
         self.invalidate()
         self.dirty = True