~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/cmd_version_info.py

  • Committer: Ian Clatworthy
  • Date: 2008-12-15 04:37:10 UTC
  • mfrom: (3892.1.6 bzr.help-formats)
  • mto: This revision was merged to the branch mainline in revision 3905.
  • Revision ID: ian.clatworthy@canonical.com-20081215043710-ybhxvqjeir13k5ht
Improved help on storage formats (Ian Clatworthy)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2011 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
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
15
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
16
16
 
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,
 
24
    workingtree,
25
25
    version_info_formats,
26
 
    workingtree,
27
26
    )
28
 
from bzrlib.i18n import gettext
29
27
""")
30
 
 
31
28
from bzrlib.commands import Command
32
29
from bzrlib.option import Option, RegistryOption
33
30
 
42
39
        return version_info_formats.get_builder(format)
43
40
    except KeyError:
44
41
        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))
 
42
        raise errors.BzrCommandError('No known version info format %s.'
 
43
                                     ' Supported types are: %s'
 
44
                                     % (format, formats))
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