Mercurial > hg-stable
diff mercurial/repair.py @ 50530:e50d1fe7ebb4
store: issue a single entry for each revlog
We now yield a single entry, with data about each files involved. This help to
simplify multiple code using this and it will help to further simplify and
fixes the streaming code.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 15 May 2023 09:03:15 +0200 |
parents | 92611344aec2 |
children | 862e3a13da44 |
line wrap: on
line diff
--- a/mercurial/repair.py Mon May 15 09:02:59 2023 +0200 +++ b/mercurial/repair.py Mon May 15 09:03:15 2023 +0200 @@ -448,9 +448,7 @@ for entry in repo.store.datafiles(): if not entry.is_revlog: continue - if not entry.revlog_type == store.FILEFLAGS_MANIFESTLOG: - continue - if entry.is_revlog_main: + if entry.revlog_type == store.FILEFLAGS_MANIFESTLOG: yield repo.manifestlog.getstorage(entry.target_id)