~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/gpg.py

  • Committer: Jelmer Vernooij
  • Date: 2012-03-11 15:47:18 UTC
  • mto: This revision was merged to the branch mainline in revision 6494.
  • Revision ID: jelmer@samba.org-20120311154718-osju6kx8b6aw7ss8
Various cleanups related to GPG.

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
        all_verifiable = True
109
109
        for rev_id in revisions:
110
110
            verification_result, uid =\
111
 
                repository.verify_revision_signature(rev_id,self)
 
111
                repository.verify_revision_signature(rev_id, self)
112
112
            result.append([rev_id, verification_result, uid])
113
113
            count[verification_result] += 1
114
114
            if verification_result != SIGNATURE_VALID:
230
230
 
231
231
    def verify(self, content, testament):
232
232
        """Check content has a valid signature.
233
 
        
 
233
 
234
234
        :param content: the commit signature
235
235
        :param testament: the valid testament string for the commit
236
 
        
 
236
 
237
237
        :return: SIGNATURE_VALID or a failed SIGNATURE_ value, key uid if valid
238
238
        """
239
239
        try:
308
308
 
309
309
    def set_acceptable_keys(self, command_line_input):
310
310
        """Set the acceptable keys for verifying with this GPGStrategy.
311
 
        
 
311
 
312
312
        :param command_line_input: comma separated list of patterns from
313
313
                                command line
314
314
        :return: nothing
346
346
    def do_verifications(self, revisions, repository,
347
347
                            process_events_callback=None):
348
348
        """do verifications on a set of revisions
349
 
        
 
349
 
350
350
        :param revisions: list of revision ids to verify
351
351
        :param repository: repository object
352
352
        :param process_events_callback: method to call for GUI frontends that
353
 
                                                want to keep their UI refreshed
354
 
        
 
353
            want to keep their UI refreshed
 
354
 
355
355
        :return: count dictionary of results of each type,
356
356
                 result list for each revision,
357
357
                 boolean True if all results are verified successfully