~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/cmd_version_info.py

  • Committer: Vincent Ladeuil
  • Date: 2010-10-07 06:08:01 UTC
  • mto: This revision was merged to the branch mainline in revision 5491.
  • Revision ID: v.ladeuil+lp@free.fr-20101007060801-wfdhizfhfmctl8qa
Fix some typos and propose a release planning.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2011 Canonical Ltd
 
1
# Copyright (C) 2005-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
22
22
from bzrlib import (
23
23
    branch,
24
24
    errors,
 
25
    ui,
25
26
    version_info_formats,
26
27
    workingtree,
27
28
    )
28
 
from bzrlib.i18n import gettext
29
29
""")
30
30
 
31
31
from bzrlib.commands import Command
42
42
        return version_info_formats.get_builder(format)
43
43
    except KeyError:
44
44
        formats = version_info_formats.get_builder_formats()
45
 
        raise errors.BzrCommandError(gettext('No known version info format {0}.'
46
 
                                     ' Supported types are: {1}').format(
47
 
                                     format, formats))
 
45
        raise errors.BzrCommandError('No known version info format %s.'
 
46
                                     ' Supported types are: %s'
 
47
                                     % (format, formats))
48
48
 
49
49
 
50
50
class cmd_version_info(Command):
116
116
                include_revision_history=include_history,
117
117
                include_file_revisions=include_file_revisions,
118
118
                template=template)
119
 
        builder.generate(self.outf)
 
119
        builder.generate(ui.ui_factory.make_output_stream())