~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-09 09:04:06 UTC
  • mfrom: (6056.2.3 migrate-config-options)
  • Revision ID: pqm@pqm.ubuntu.com-20110809090406-sjx052uyb3t9c6o0
(vila) Migrate some config options to the stack-based API. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2287
2287
    help='Same as 2a.')
2288
2288
 
2289
2289
# The current format that is made on 'bzr init'.
2290
 
format_name = config.GlobalConfig().get_user_option('default_format')
2291
 
if format_name is None:
2292
 
    controldir.format_registry.set_default('2a')
2293
 
else:
2294
 
    controldir.format_registry.set_default(format_name)
 
2290
format_name = config.GlobalStack().get('default_format')
 
2291
controldir.format_registry.set_default(format_name)
2295
2292
 
2296
2293
# XXX 2010-08-20 JRV: There is still a lot of code relying on
2297
2294
# bzrlib.bzrdir.format_registry existing. When BzrDir.create/BzrDir.open/etc