D9466: upgrade: rename UPGRADE_FILELOG to UPGRADE_FILELOGS

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Mon Nov 30 15:43:17 UTC 2020


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

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(



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


More information about the Mercurial-devel mailing list