changeset 45995:fe7d7917ceb5

upgrade: rename UPGRADE_FILELOG to UPGRADE_FILELOGS They are multiple filelog to upgrade, so this seems more accurate. Differential Revision: https://phab.mercurial-scm.org/D9466
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Mon, 30 Nov 2020 12:24:36 +0100
parents 744ea3c4f41b
children 53bde3ad0270
files mercurial/upgrade.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/upgrade.py	Mon Nov 23 12:54:46 2020 +0100
+++ b/mercurial/upgrade.py	Mon Nov 30 12:24:36 2020 +0100
@@ -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(