/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-07-28 02:47:10 UTC
  • mfrom: (7519.1.1 merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200728024710-a2ylds219f1lsl62
Merge lp:brz/3.1.

Merged from https://code.launchpad.net/~jelmer/brz/merge-3.1/+merge/388173

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