~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/cmd_version_info.py

  • Committer: Andrew Bennetts
  • Date: 2008-02-18 08:30:38 UTC
  • mto: This revision was merged to the branch mainline in revision 3756.
  • Revision ID: andrew.bennetts@canonical.com-20080218083038-tts55zsx5xrz3l2e
Lots of assorted hackery to reduce the number of imports for common operations.  Improves 'rocks', 'st' and 'help' times by ~50ms on my laptop.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    branch,
23
23
    errors,
24
24
    workingtree,
 
25
    version_info_formats,
25
26
    )
26
27
""")
27
 
from bzrlib import (
28
 
    version_info_formats,
29
 
    )
30
28
from bzrlib.commands import Command
31
29
from bzrlib.option import Option, RegistryOption
32
30
 
72
70
 
73
71
    takes_options = [RegistryOption('format',
74
72
                            'Select the output format.',
75
 
                            version_info_formats.format_registry,
76
 
                            value_switches=True),
 
73
                            value_switches=True,
 
74
                            lazy_registry=('bzrlib.version_info_formats',
 
75
                                           'format_registry')),
77
76
                     Option('all', help='Include all possible information.'),
78
77
                     Option('check-clean', help='Check if tree is clean.'),
79
78
                     Option('include-history',