Mercurial > hg
changeset 50500:0bd214f83216
store: use the boolean property in `repair_issue6528`
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 15 May 2023 22:10:33 +0200 |
parents | 7a1a0a236187 |
children | 4242acf5c399 |
files | mercurial/revlogutils/rewrite.py |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlogutils/rewrite.py Mon May 15 22:10:04 2023 +0200 +++ b/mercurial/revlogutils/rewrite.py Mon May 15 22:10:33 2023 +0200 @@ -808,8 +808,6 @@ def repair_issue6528( ui, repo, dry_run=False, to_report=None, from_report=None, paranoid=False ): - from .. import store # avoid cycle - @contextlib.contextmanager def context(): if dry_run or to_report: # No need for locking @@ -827,9 +825,7 @@ files = list( entry for entry in repo.store.datafiles() - if ( - entry.is_revlog and entry.revlog_type == store.FILEFLAGS_FILELOG - ) + if entry.is_revlog and entry.is_filelog ) progress = ui.makeprogress(