Mercurial > hg-stable
changeset 50687:8f7e189af9dc
repair: use `is_manifestlog` to recognise manifest revlog
This is simpler that comparing flag, and we want to remove these flags anyway.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 12 Jun 2023 23:24:41 +0200 |
parents | 459681233b1f |
children | e324329fc97e |
files | mercurial/repair.py |
diffstat | 1 files changed, 1 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/repair.py Tue Jun 06 04:56:54 2023 +0200 +++ b/mercurial/repair.py Mon Jun 12 23:24:41 2023 +0200 @@ -24,7 +24,6 @@ phases, requirements, scmutil, - store, transaction, util, ) @@ -446,9 +445,7 @@ # This logic is safe if treemanifest isn't enabled, but also # pointless, so we skip it if treemanifest isn't enabled. for entry in repo.store.data_entries(): - if not entry.is_revlog: - continue - if entry.revlog_type == store.FILEFLAGS_MANIFESTLOG: + if entry.is_revlog and entry.is_manifestlog: yield repo.manifestlog.getstorage(entry.target_id)