upgrade: rename UPGRADE_FILELOG to UPGRADE_FILELOGS
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 30 Nov 2020 12:24:36 +0100
changeset 45980 fe7d7917ceb5
parent 45979 744ea3c4f41b
child 45981 53bde3ad0270
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
mercurial/upgrade.py
--- 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(