comparison mercurial/localrepo.py @ 48792:8bbb1abb9d19

tracked-file: rename the format option to use `use-` This is more consistent with the other options. Differential Revision: https://phab.mercurial-scm.org/D12200
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 17 Feb 2022 06:41:54 +0100
parents 79a967128055
children 6e559391f96e
comparison
equal deleted inserted replaced
48791:1af95465961a 48792:8bbb1abb9d19
3693 if createopts.get(b'sharedrelative'): 3693 if createopts.get(b'sharedrelative'):
3694 requirements.add(requirementsmod.RELATIVE_SHARED_REQUIREMENT) 3694 requirements.add(requirementsmod.RELATIVE_SHARED_REQUIREMENT)
3695 else: 3695 else:
3696 requirements.add(requirementsmod.SHARED_REQUIREMENT) 3696 requirements.add(requirementsmod.SHARED_REQUIREMENT)
3697 3697
3698 if ui.configbool(b'format', b'dirstate-tracked-key'): 3698 if ui.configbool(b'format', b'use-dirstate-tracked-key'):
3699 version = ui.configint(b'format', b'dirstate-tracked-key.version') 3699 version = ui.configint(b'format', b'use-dirstate-tracked-key.version')
3700 msg = _("ignoring unknown tracked key version: %d\n") 3700 msg = _("ignoring unknown tracked key version: %d\n")
3701 hint = _("see `hg help config.format.exp-dirstate-tracked-key-version") 3701 hint = _("see `hg help config.format.use-dirstate-tracked-key-version")
3702 if version != 1: 3702 if version != 1:
3703 ui.warn(msg % version, hint=hint) 3703 ui.warn(msg % version, hint=hint)
3704 else: 3704 else:
3705 requirements.add(requirementsmod.DIRSTATE_TRACKED_KEY_V1) 3705 requirements.add(requirementsmod.DIRSTATE_TRACKED_KEY_V1)
3706 3706