/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/cmd_version_info.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
"""Commands for generating snapshot information about a brz tree."""
18
18
 
19
 
from __future__ import absolute_import
20
 
 
21
19
from .lazy_import import lazy_import
22
20
 
23
21
lazy_import(globals(), """
34
32
    )
35
33
from .commands import Command
36
34
from .option import Option, RegistryOption
37
 
from .sixish import text_type
38
35
 
39
36
 
40
37
def _parse_version_info_format(format):
47
44
        return version_info_formats.get_builder(format)
48
45
    except KeyError:
49
46
        formats = version_info_formats.get_builder_formats()
50
 
        raise errors.BzrCommandError(
 
47
        raise errors.CommandError(
51
48
            gettext('No known version info format {0}.'
52
49
                    ' Supported types are: {1}').format(format, formats))
53
50
 
87
84
                            help='Include the revision-history.'),
88
85
                     Option('include-file-revisions',
89
86
                            help='Include the last revision for each file.'),
90
 
                     Option('template', type=text_type,
 
87
                     Option('template', type=str,
91
88
                            help='Template for the output.'),
92
89
                     'revision',
93
90
                     ]
101
98
            revision=None):
102
99
 
103
100
        if revision and len(revision) > 1:
104
 
            raise errors.BzrCommandError(
 
101
            raise errors.CommandError(
105
102
                gettext('brz version-info --revision takes exactly'
106
103
                        ' one revision specifier'))
107
104