643
def set_user_option(self, name, value, store=STORE_BRANCH,
642
def set_user_option(self, name, value, store=STORE_BRANCH):
645
643
if store == STORE_BRANCH:
646
644
self._get_branch_data_config().set_option(value, name)
647
645
elif store == STORE_GLOBAL:
648
646
self._get_global_config().set_user_option(name, value)
650
648
self._get_location_config().set_user_option(name, value, store)
653
if store in (STORE_GLOBAL, STORE_BRANCH):
654
mask_value = self._get_location_config().get_user_option(name)
655
if mask_value is not None:
656
trace.warning('Value "%s" is masked by "%s" from'
657
' locations.conf', value, mask_value)
659
if store == STORE_GLOBAL:
660
branch_config = self._get_branch_data_config()
661
mask_value = branch_config.get_user_option(name)
662
if mask_value is not None:
663
trace.warning('Value "%s" is masked by "%s" from'
664
' branch.conf', value, mask_value)
667
650
def _gpg_signing_command(self):
668
651
"""See Config.gpg_signing_command."""