/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: Jelmer Vernooij
  • Date: 2019-03-04 00:16:27 UTC
  • mfrom: (7293 work)
  • mto: This revision was merged to the branch mainline in revision 7318.
  • Revision ID: jelmer@jelmer.uk-20190304001627-v6u7o6pf97tukhek
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        return version_info_formats.get_builder(format)
46
46
    except KeyError:
47
47
        formats = version_info_formats.get_builder_formats()
48
 
        raise errors.BzrCommandError(gettext('No known version info format {0}.'
49
 
                                     ' Supported types are: {1}').format(
50
 
                                     format, formats))
 
48
        raise errors.BzrCommandError(
 
49
            gettext('No known version info format {0}.'
 
50
                    ' Supported types are: {1}').format(format, formats))
51
51
 
52
52
 
53
53
class cmd_version_info(Command):
75
75
    """
76
76
 
77
77
    takes_options = [RegistryOption('format',
78
 
                            'Select the output format.',
79
 
                            value_switches=True,
80
 
                            lazy_registry=('breezy.version_info_formats',
81
 
                                           'format_registry')),
 
78
                                    'Select the output format.',
 
79
                                    value_switches=True,
 
80
                                    lazy_registry=('breezy.version_info_formats',
 
81
                                                   'format_registry')),
82
82
                     Option('all', help='Include all possible information.'),
83
83
                     Option('check-clean', help='Check if tree is clean.'),
84
84
                     Option('include-history',
85
85
                            help='Include the revision-history.'),
86
86
                     Option('include-file-revisions',
87
87
                            help='Include the last revision for each file.'),
88
 
                     Option('template', type=text_type, help='Template for the output.'),
 
88
                     Option('template', type=text_type,
 
89
                            help='Template for the output.'),
89
90
                     'revision',
90
91
                     ]
91
92
    takes_args = ['location?']
132
133
            revision_id = None
133
134
 
134
135
        builder = format(b, working_tree=wt,
135
 
                check_for_clean=check_clean,
136
 
                include_revision_history=include_history,
137
 
                include_file_revisions=include_file_revisions,
138
 
                template=template, revision_id=revision_id)
 
136
                         check_for_clean=check_clean,
 
137
                         include_revision_history=include_history,
 
138
                         include_file_revisions=include_file_revisions,
 
139
                         template=template, revision_id=revision_id)
139
140
        builder.generate(self.outf)