# HG changeset patch # User Pierre-Yves David # Date 1655212671 -7200 # Node ID 1b91147094280e700dbac9b6b2eeee202333d367 # Parent 9e203cda32382647a89cead00c88b6bf3fdbf555 auto-upgrade: rename a variable to match the actual content This was the result of a copy paste. diff -r 9e203cda3238 -r 1b9114709428 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: