Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/upgrade_utils/engine.py @ 46252:8023991dc811
upgrade: explicitly test for revlog index
We do not want to exclude `.d` we want to only include `.i`. We are about to add
more extension type (for the persistent nodemap: `.n`, `.nd`) so lets make the
list explicit instead.
Differential Revision: https://phab.mercurial-scm.org/D9748
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 13 Jan 2021 12:50:47 +0100 |
parents | 52abb1af2995 |
children | 8da44c36fc74 2e8a844d0ae0 |
comparison
equal
deleted
inserted
replaced
46251:40ec2173f4dd | 46252:8023991dc811 |
---|---|
188 filelogs = {} | 188 filelogs = {} |
189 | 189 |
190 # Perform a pass to collect metadata. This validates we can open all | 190 # Perform a pass to collect metadata. This validates we can open all |
191 # source files and allows a unified progress bar to be displayed. | 191 # source files and allows a unified progress bar to be displayed. |
192 for unencoded, encoded, size in alldatafiles: | 192 for unencoded, encoded, size in alldatafiles: |
193 if unencoded.endswith(b'.d'): | 193 if not unencoded.endswith(b'.i'): |
194 continue | 194 continue |
195 | 195 |
196 rl = _revlogfrompath(srcrepo, unencoded) | 196 rl = _revlogfrompath(srcrepo, unencoded) |
197 | 197 |
198 info = rl.storageinfo( | 198 info = rl.storageinfo( |