Patchwork D9466: upgrade: rename UPGRADE_FILELOG to UPGRADE_FILELOGS

login
register
mail settings
Submitter phabricator
Date Nov. 30, 2020, 3:43 p.m.
Message ID <differential-rev-PHID-DREV-4jpo66mxmqubtxovk64d-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/47744/
State Superseded
Headers show

Comments

phabricator - Nov. 30, 2020, 3:43 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  They are multiple filelog to upgrade, so this seems more accurate.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/upgrade.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/upgrade.py b/mercurial/upgrade.py
--- a/mercurial/upgrade.py
+++ b/mercurial/upgrade.py
@@ -716,10 +716,10 @@ 
 
 UPGRADE_CHANGELOG = object()
 UPGRADE_MANIFEST = object()
-UPGRADE_FILELOG = object()
+UPGRADE_FILELOGS = object()
 
 UPGRADE_ALL_REVLOGS = frozenset(
-    [UPGRADE_CHANGELOG, UPGRADE_MANIFEST, UPGRADE_FILELOG]
+    [UPGRADE_CHANGELOG, UPGRADE_MANIFEST, UPGRADE_FILELOGS]
 )
 
 
@@ -753,7 +753,7 @@ 
         return UPGRADE_CHANGELOG in revlogfilter
     elif entry.endswith(b'00manifest.i'):
         return UPGRADE_MANIFEST in revlogfilter
-    return UPGRADE_FILELOG in revlogfilter
+    return UPGRADE_FILELOGS in revlogfilter
 
 
 def _clonerevlogs(