Mercurial > hg-stable
changeset 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 | 40ec2173f4dd |
children | 1cebad969d88 |
files | mercurial/upgrade_utils/engine.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/upgrade_utils/engine.py Tue Jan 12 19:47:34 2021 +0100 +++ b/mercurial/upgrade_utils/engine.py Wed Jan 13 12:50:47 2021 +0100 @@ -190,7 +190,7 @@ # Perform a pass to collect metadata. This validates we can open all # source files and allows a unified progress bar to be displayed. for unencoded, encoded, size in alldatafiles: - if unencoded.endswith(b'.d'): + if not unencoded.endswith(b'.i'): continue rl = _revlogfrompath(srcrepo, unencoded)