Patchwork D9748: upgrade: explicitly test for revlog index

login
register
mail settings
Submitter phabricator
Date Jan. 13, 2021, 12:10 p.m.
Message ID <differential-rev-PHID-DREV-fwmqtdlvaz5cas4sbtsd-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48059/
State Superseded
Headers show

Comments

phabricator - Jan. 13, 2021, 12:10 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  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.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D9748

AFFECTED FILES
  mercurial/upgrade_utils/engine.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/upgrade_utils/engine.py b/mercurial/upgrade_utils/engine.py
--- a/mercurial/upgrade_utils/engine.py
+++ b/mercurial/upgrade_utils/engine.py
@@ -194,7 +194,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)