Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/upgrade_utils/engine.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 | 3473d18c029a |
children | e4186ddab473 |
comparison
equal
deleted
inserted
replaced
50529:ed8cda1c18e1 | 50530:e50d1fe7ebb4 |
---|---|
192 filelogs = {} | 192 filelogs = {} |
193 | 193 |
194 # Perform a pass to collect metadata. This validates we can open all | 194 # Perform a pass to collect metadata. This validates we can open all |
195 # source files and allows a unified progress bar to be displayed. | 195 # source files and allows a unified progress bar to be displayed. |
196 for entry in alldatafiles: | 196 for entry in alldatafiles: |
197 if not (entry.is_revlog and entry.is_revlog_main): | 197 if not entry.is_revlog: |
198 continue | 198 continue |
199 | 199 |
200 rl = _revlog_from_store_entry(srcrepo, entry) | 200 rl = _revlog_from_store_entry(srcrepo, entry) |
201 | 201 |
202 info = rl.storageinfo( | 202 info = rl.storageinfo( |