/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 breezy/commit_signature_commands.py

  • Committer: Jelmer Vernooij
  • Date: 2020-03-22 20:02:36 UTC
  • mto: (7490.7.7 work)
  • mto: This revision was merged to the branch mainline in revision 7501.
  • Revision ID: jelmer@jelmer.uk-20200322200236-fsbl91ktcn6fcbdd
Fix tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Command that signs unsigned commits by the current user. """
18
18
 
 
19
from __future__ import absolute_import
 
20
 
19
21
from . import (
20
22
    controldir,
21
23
    errors,
26
28
from .commands import Command
27
29
from .option import Option
28
30
from .i18n import gettext, ngettext
 
31
from .sixish import text_type
29
32
 
30
33
 
31
34
class cmd_sign_my_commits(Command):
99
102
               help='Comma separated list of GPG key patterns which are'
100
103
               ' acceptable for verification.',
101
104
               short_name='k',
102
 
               type=str,),
 
105
               type=text_type,),
103
106
        'revision',
104
107
        'verbose',
105
108
        ]
134
137
                if to_revid is None:
135
138
                    to_revno = branch.revno()
136
139
                if from_revno is None or to_revno is None:
137
 
                    raise errors.CommandError(
 
140
                    raise errors.BzrCommandError(
138
141
                        gettext('Cannot verify a range of non-revision-history'
139
142
                                ' revisions'))
140
143
                for revno in range(from_revno, to_revno + 1):