Mercurial > public > mercurial-scm > hg
diff mercurial/store.py @ 50510:5a62d56e3955
store: yield phases before changelog
Creating the `changelog.i` file make the repository usable, so dealing with phase earlier seems better.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 21 May 2023 02:16:24 +0200 |
parents | a32d739b0ffb |
children | 0925eaf09c8b |
line wrap: on
line diff
--- a/mercurial/store.py Sun May 21 02:15:04 2023 +0200 +++ b/mercurial/store.py Sun May 21 02:16:24 2023 +0200 @@ -686,6 +686,12 @@ ) def top_entries(self, phase=False) -> Generator[BaseStoreEntry, None, None]: + if phase and self.vfs.exists(b'phaseroots'): + yield SimpleStoreEntry( + entry_path=b'phaseroots', + is_volatile=True, + ) + files = reversed(self._walk(b'', False)) changelogs = collections.defaultdict(dict) @@ -725,11 +731,6 @@ target_id=b'', details=file_details, ) - if phase and self.vfs.exists(b'phaseroots'): - yield SimpleStoreEntry( - entry_path=b'phaseroots', - is_volatile=True, - ) def walk( self, matcher=None, phase=False