Skip to content
Snippets Groups Projects
Commit 1b911470 authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

auto-upgrade: rename a variable to match the actual content

This was the result of a copy paste.
parent 9e203cda
No related branches found
No related tags found
2 merge requests!168branching: merge default into stable,!165share-safe: add an option to silence the auto-upgrade message
...@@ -149,10 +149,10 @@ ...@@ -149,10 +149,10 @@
""" """
ui = repo.ui ui = repo.ui
requirements = set(repo.requirements) requirements = set(repo.requirements)
auto_upgrade_tracked_hint = ui.configbool( auto_upgrade_dv2 = ui.configbool(
b'format', b'format',
b'use-dirstate-v2.automatic-upgrade-of-mismatching-repositories', b'use-dirstate-v2.automatic-upgrade-of-mismatching-repositories',
) )
action = None action = None
...@@ -153,10 +153,10 @@ ...@@ -153,10 +153,10 @@
b'format', b'format',
b'use-dirstate-v2.automatic-upgrade-of-mismatching-repositories', b'use-dirstate-v2.automatic-upgrade-of-mismatching-repositories',
) )
action = None action = None
if auto_upgrade_tracked_hint: if auto_upgrade_dv2:
d2_config = ui.configbool(b'format', b'use-dirstate-v2') d2_config = ui.configbool(b'format', b'use-dirstate-v2')
d2_local = requirementsmod.DIRSTATE_V2_REQUIREMENT in requirements d2_local = requirementsmod.DIRSTATE_V2_REQUIREMENT in requirements
if d2_config and not d2_local: if d2_config and not d2_local:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment