Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
51401:68289ed170c7 | 51402:04111ef08fb0 |
---|---|
267 raise NotImplementedError | 267 raise NotImplementedError |
268 | 268 |
269 def _write(self, fp): | 269 def _write(self, fp): |
270 raise NotImplementedError | 270 raise NotImplementedError |
271 | 271 |
272 def _updateroots(self, phase, newroots, tr): | 272 def _updateroots(self, repo, phase, newroots, tr): |
273 self._phaseroots[phase] = newroots | 273 self._phaseroots[phase] = newroots |
274 self.invalidate() | 274 self.invalidate() |
275 self.dirty = True | 275 self.dirty = True |
276 | 276 |
277 | 277 |