Mercurial > hg
changeset 49340:1b9114709428
auto-upgrade: rename a variable to match the actual content
This was the result of a copy paste.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 14 Jun 2022 15:17:51 +0200 |
parents | 9e203cda3238 |
children | b38f5063a0c6 |
files | mercurial/upgrade_utils/auto_upgrade.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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: