642
def set_user_option(self, name, value, store=STORE_BRANCH):
643
def set_user_option(self, name, value, store=STORE_BRANCH,
643
645
if store == STORE_BRANCH:
644
646
self._get_branch_data_config().set_option(value, name)
645
647
elif store == STORE_GLOBAL:
646
648
self._get_global_config().set_user_option(name, value)
648
650
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)
650
667
def _gpg_signing_command(self):
651
668
"""See Config.gpg_signing_command."""