auto-upgrade: rename a variable to match the actual content
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 14 Jun 2022 15:17:51 +0200
changeset 49340 1b9114709428
parent 49339 9e203cda3238
child 49341 b38f5063a0c6
auto-upgrade: rename a variable to match the actual content This was the result of a copy paste.
mercurial/upgrade_utils/auto_upgrade.py
--- a/mercurial/upgrade_utils/auto_upgrade.py	Tue Jun 14 15:11:36 2022 +0200
+++ b/mercurial/upgrade_utils/auto_upgrade.py	Tue Jun 14 15:17:51 2022 +0200
@@ -149,14 +149,14 @@
     """
     ui = repo.ui
     requirements = set(repo.requirements)
-    auto_upgrade_tracked_hint = ui.configbool(
+    auto_upgrade_dv2 = ui.configbool(
         b'format',
         b'use-dirstate-v2.automatic-upgrade-of-mismatching-repositories',
     )
 
     action = None
 
-    if auto_upgrade_tracked_hint:
+    if auto_upgrade_dv2:
         d2_config = ui.configbool(b'format', b'use-dirstate-v2')
         d2_local = requirementsmod.DIRSTATE_V2_REQUIREMENT in requirements
         if d2_config and not d2_local: