/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/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-06-30 16:06:19 UTC
  • mfrom: (5971.1.80 bzr-gpgme)
  • Revision ID: pqm@pqm.ubuntu.com-20110630160619-3022zmfchft893nt
(jr) A new command ``bzr verify-signatures`` has been added to check that
 commits
 are correctly signed with trusted keys by GPG. This requires python-gpgme to
 be installed. ``bzr log`` has gained a ``--signatures`` option to list the
 validity of signatures for each commit. New config options
 ``acceptable_keys``
 and ``validate_signatures_in_log`` can be set to control options to these
 commands. (Jonathan Riddell)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1800
1800
 
1801
1801
class SigningFailed(BzrError):
1802
1802
 
1803
 
    _fmt = 'Failed to gpg sign data with command "%(command_line)s"'
 
1803
    _fmt = 'Failed to GPG sign data with command "%(command_line)s"'
1804
1804
 
1805
1805
    def __init__(self, command_line):
1806
1806
        BzrError.__init__(self, command_line=command_line)
1807
1807
 
1808
1808
 
 
1809
class SignatureVerificationFailed(BzrError):
 
1810
 
 
1811
    _fmt = 'Failed to verify GPG signature data with error "%(error)s"'
 
1812
 
 
1813
    def __init__(self, error):
 
1814
        BzrError.__init__(self, error=error)
 
1815
 
 
1816
 
 
1817
class DependencyNotPresent(BzrError):
 
1818
 
 
1819
    _fmt = 'Unable to import library "%(library)s": %(error)s'
 
1820
 
 
1821
    def __init__(self, library, error):
 
1822
        BzrError.__init__(self, library=library, error=error)
 
1823
 
 
1824
 
 
1825
class GpgmeNotInstalled(DependencyNotPresent):
 
1826
 
 
1827
    _fmt = 'python-gpgme is not installed, it is needed to verify signatures'
 
1828
 
 
1829
    def __init__(self, error):
 
1830
        DependencyNotPresent.__init__(self, 'gpgme', error)
 
1831
 
 
1832
 
1809
1833
class WorkingTreeNotRevision(BzrError):
1810
1834
 
1811
1835
    _fmt = ("The working tree for %(basedir)s has changed since"
2064
2088
    _fmt = "Parameter %(param)s contains a newline."
2065
2089
 
2066
2090
 
2067
 
class DependencyNotPresent(BzrError):
2068
 
 
2069
 
    _fmt = 'Unable to import library "%(library)s": %(error)s'
2070
 
 
2071
 
    def __init__(self, library, error):
2072
 
        BzrError.__init__(self, library=library, error=error)
2073
 
 
2074
 
 
2075
2091
class ParamikoNotPresent(DependencyNotPresent):
2076
2092
 
2077
2093
    _fmt = "Unable to import paramiko (required for sftp support): %(error)s"