# HG changeset patch # User Pierre-Yves David # Date 2022-06-14 13:17:51 # Node ID 1b91147094280e700dbac9b6b2eeee202333d367 # Parent 9e203cda32382647a89cead00c88b6bf3fdbf555 auto-upgrade: rename a variable to match the actual content This was the result of a copy paste. diff --git a/mercurial/upgrade_utils/auto_upgrade.py b/mercurial/upgrade_utils/auto_upgrade.py --- a/mercurial/upgrade_utils/auto_upgrade.py +++ b/mercurial/upgrade_utils/auto_upgrade.py @@ -149,14 +149,14 @@ def get_dirstate_v2_action(repo): """ 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: