~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commit_signature_commands.py

  • Committer: Andrew Starr-Bochicchio
  • Date: 2014-03-30 17:59:29 UTC
  • mto: This revision was merged to the branch mainline in revision 6592.
  • Revision ID: a.starr.b@gmail.com-20140330175929-rd97jstcbau2j1gy
Use LooseVersion from distutils to check Cython version in order to handle non-integers in the version string.

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
                        ' acceptable for verification.',
112
112
                   short_name='k',
113
113
                   type=str,),
114
 
            'revision',
 
114
            'revision', 
115
115
            'verbose',
116
116
          ]
117
117
    takes_args = ['location?']
160
160
                    # Ignore ghosts
161
161
                    continue
162
162
                revisions.append(rev_id)
163
 
        count, result, all_verifiable = gpg.bulk_verify_signatures(
164
 
            repo, revisions, gpg_strategy)
 
163
        count, result, all_verifiable =\
 
164
                                gpg.bulk_verify_signatures(repo, revisions, gpg_strategy)
165
165
        if all_verifiable:
166
166
               write(gettext("All commits signed with verifiable keys"))
167
167
               if verbose:
168
 
                   for message in gpg.verbose_valid_message(result):
169
 
                       write_verbose(message)
 
168
                   write(gpg.verbose_valid_message(result))
170
169
               return 0
171
170
        else:
172
171
            write(gpg.valid_commits_message(count))