~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Andrew Bennetts
  • Date: 2008-02-18 14:25:18 UTC
  • mto: This revision was merged to the branch mainline in revision 3756.
  • Revision ID: andrew.bennetts@canonical.com-20080218142518-yw3z1ob6g0jh5hox
Avoid importing bzrlib.bzrdir unnecessarily.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1288
1288
         RegistryOption('format',
1289
1289
                help='Specify a format for this branch. '
1290
1290
                'See "help formats".',
1291
 
                registry=bzrdir.format_registry,
1292
 
                converter=bzrdir.format_registry.make_bzrdir,
 
1291
                lazy_registry=('bzrlib.bzrdir', 'format_registry'),
 
1292
                converter=lambda name: bzrdir.format_registry.make_bzrdir(name),
1293
1293
                value_switches=True,
1294
1294
                title="Branch Format",
1295
1295
                ),
1374
1374
    takes_options = [RegistryOption('format',
1375
1375
                            help='Specify a format for this repository. See'
1376
1376
                                 ' "bzr help formats" for details.',
1377
 
                            registry=bzrdir.format_registry,
1378
 
                            converter=bzrdir.format_registry.make_bzrdir,
 
1377
                            lazy_registry=('bzrlib.bzrdir', 'format_registry'),
 
1378
                            converter=lambda name: bzrdir.format_registry.make_bzrdir(name),
1379
1379
                            value_switches=True, title='Repository format'),
1380
1380
                     Option('no-trees',
1381
1381
                             help='Branches in the repository will default to'
2422
2422
                    RegistryOption('format',
2423
2423
                        help='Upgrade to a specific format.  See "bzr help'
2424
2424
                             ' formats" for details.',
2425
 
                        registry=bzrdir.format_registry,
2426
 
                        converter=bzrdir.format_registry.make_bzrdir,
 
2425
                        lazy_registry=('bzrlib.bzrdir', 'format_registry'),
 
2426
                        converter=lambda name: bzrdir.format_registry.make_bzrdir(name),
2427
2427
                        value_switches=True, title='Branch format'),
2428
2428
                    ]
2429
2429