~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/cmd_version_info.py

  • Committer: Danny van Heumen
  • Date: 2010-03-09 21:42:11 UTC
  • mto: (4634.139.5 2.0)
  • mto: This revision was merged to the branch mainline in revision 5160.
  • Revision ID: danny@dannyvanheumen.nl-20100309214211-iqh42x6qcikgd9p3
Reverted now-useless TODO list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2010 Canonical Ltd
 
1
# Copyright (C) 2005, 2006 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
17
17
"""Commands for generating snapshot information about a bzr tree."""
18
18
 
19
19
from bzrlib.lazy_import import lazy_import
20
 
 
21
20
lazy_import(globals(), """
22
21
from bzrlib import (
23
22
    branch,
24
23
    errors,
25
 
    ui,
 
24
    workingtree,
26
25
    version_info_formats,
27
 
    workingtree,
28
26
    )
29
27
""")
30
 
 
31
28
from bzrlib.commands import Command
32
29
from bzrlib.option import Option, RegistryOption
33
30
 
48
45
 
49
46
 
50
47
class cmd_version_info(Command):
51
 
    __doc__ = """Show version information about this tree.
 
48
    """Show version information about this tree.
52
49
 
53
50
    You can use this command to add information about version into
54
51
    source code of an application. The output can be in one of the
116
113
                include_revision_history=include_history,
117
114
                include_file_revisions=include_file_revisions,
118
115
                template=template)
119
 
        builder.generate(ui.ui_factory.make_output_stream())
 
116
        builder.generate(self.outf)