/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-06-14 10:47:20 UTC
  • mfrom: (5967.3.6 digital-signatures)
  • Revision ID: pqm@pqm.ubuntu.com-20110614104720-gpqe299xphd8069e
(jr) * Do not treat configuration option 'check_signatures = require' as if
 it were 'create_signatures = always'. * Make docs for configuration options
 for digital signatures match reality. * Add user-guide page on GPG
 signatures. (Jonathan Riddell)

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
                                        interpolation=False,
145
145
                                        **kwargs)
146
146
 
147
 
 
148
147
    def get_bool(self, section, key):
149
148
        return self[section].as_bool(key)
150
149
 
493
492
        if policy is None:
494
493
            policy = self._get_signature_checking()
495
494
            if policy is not None:
 
495
                #this warning should go away once check_signatures is
 
496
                #implemented (if not before)
496
497
                trace.warning("Please use create_signatures,"
497
498
                              " not check_signatures to set signing policy.")
498
 
            if policy == CHECK_ALWAYS:
499
 
                return True
500
499
        elif policy == SIGN_ALWAYS:
501
500
            return True
502
501
        return False
545
544
        return tools
546
545
 
547
546
    def find_merge_tool(self, name):
548
 
        # We fake a defaults mechanism here by checking if the given name can 
 
547
        # We fake a defaults mechanism here by checking if the given name can
549
548
        # be found in the known_merge_tools if it's not found in the config.
550
549
        # This should be done through the proposed config defaults mechanism
551
550
        # when it becomes available in the future.