Mercurial > public > mercurial-scm > hg
diff mercurial/localrepo.py @ 51401: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 | 8f2ea3fa50fd |
children | 7f7086a42b2b 9da3fcc5f70f |
line wrap: on
line diff
--- a/mercurial/localrepo.py Tue Feb 20 17:18:15 2024 +0100 +++ b/mercurial/localrepo.py Tue Feb 20 21:38:01 2024 +0100 @@ -3363,7 +3363,7 @@ # dirty after committing. Then when we strip, the repo is invalidated, # causing those changes to disappear. if '_phasecache' in vars(self): - self._phasecache.write() + self._phasecache.write(self) @unfilteredmethod def destroyed(self):