~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-01-15 18:14:51 UTC
  • mto: (4955.4.4 respect-direction)
  • mto: This revision was merged to the branch mainline in revision 4985.
  • Revision ID: v.ladeuil+lp@free.fr-20100115181451-vrlkt09fsyv25idg
Cleanup.

* bzrlib/tests/test_log.py:
(TestGetViewRevisions.test_file_id_for_range): Fix too long lines.

* bzrlib/log.py:
(Logger): Fix typo in doc string.
(_is_obvious_ancestor): Add comment.
(_graph_view_revisions): Add comment.

* bzrlib/builtins.py:
(cmd_log): bzr-gtk provides viz but no glog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2011 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2009 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):
51
 
    __doc__ = """Show version information about this tree.
 
51
    """Show version information about this tree.
52
52
 
53
53
    You can use this command to add information about version into
54
54
    source code of an application. The output can be in one of the
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())