~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-07-05 01:55:47 UTC
  • mfrom: (1551.15.37 Aaron's mergeable stuff)
  • Revision ID: pqm@pqm.ubuntu.com-20070705015547-qyj4nsc5w3y53b4w
Warn when setting config values that will be masked (#122286)

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
        return self.get_config().get_nickname()
173
173
 
174
174
    def _set_nick(self, nick):
175
 
        self.get_config().set_user_option('nickname', nick)
 
175
        self.get_config().set_user_option('nickname', nick, warn_masked=True)
176
176
 
177
177
    nick = property(_get_nick, _set_nick)
178
178
 
584
584
            url = ''
585
585
        elif make_relative:
586
586
            url = urlutils.relative_url(self.base, url)
587
 
        config.set_user_option(name, url)
 
587
        config.set_user_option(name, url, warn_masked=True)
588
588
 
589
589
    def _get_config_location(self, name, config=None):
590
590
        if config is None:
610
610
        pattern is that the user can override it by specifying a
611
611
        location.
612
612
        """
613
 
        self.get_config().set_user_option('submit_branch', location)
 
613
        self.get_config().set_user_option('submit_branch', location,
 
614
            warn_masked=True)
614
615
 
615
616
    def get_public_branch(self):
616
617
        """Return the public location of the branch.
2031
2032
            if config.get_user_option('bound') != 'True':
2032
2033
                return False
2033
2034
            else:
2034
 
                config.set_user_option('bound', 'False')
 
2035
                config.set_user_option('bound', 'False', warn_masked=True)
2035
2036
                return True
2036
2037
        else:
2037
2038
            self._set_config_location('bound_location', location,
2038
2039
                                      config=config)
2039
 
            config.set_user_option('bound', 'True')
 
2040
            config.set_user_option('bound', 'True', warn_masked=True)
2040
2041
        return True
2041
2042
 
2042
2043
    def _get_bound_location(self, bound):
2062
2063
            value = 'True'
2063
2064
        else:
2064
2065
            value = 'False'
2065
 
        self.get_config().set_user_option('append_revisions_only', value)
 
2066
        self.get_config().set_user_option('append_revisions_only', value,
 
2067
            warn_masked=True)
2066
2068
 
2067
2069
    def _get_append_revisions_only(self):
2068
2070
        value = self.get_config().get_user_option('append_revisions_only')