~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Patch Queue Manager
  • Date: 2011-10-14 11:14:25 UTC
  • mfrom: (6207.3.11 use-controldir)
  • Revision ID: pqm@pqm.ubuntu.com-20111014111425-c7nzqujggvlsd9zz
(jelmer) Move static/class methods from BzrDir to ControlDir. (Jelmer
 Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
 
88
88
from bzrlib import (
89
89
    atomicfile,
90
 
    bzrdir,
 
90
    controldir,
91
91
    debug,
92
92
    errors,
93
93
    lazy_regex,
3453
3453
            elif scope == 'locations':
3454
3454
                yield LocationConfig(directory)
3455
3455
            elif scope == 'branch':
3456
 
                (_, br, _) = bzrdir.BzrDir.open_containing_tree_or_branch(
3457
 
                    directory)
 
3456
                (_, br, _) = (
 
3457
                    controldir.ControlDir.open_containing_tree_or_branch(
 
3458
                        directory))
3458
3459
                yield br.get_config()
3459
3460
        else:
3460
3461
            try:
3461
 
                (_, br, _) = bzrdir.BzrDir.open_containing_tree_or_branch(
3462
 
                    directory)
 
3462
                (_, br, _) = (
 
3463
                    controldir.ControlDir.open_containing_tree_or_branch(
 
3464
                        directory))
3463
3465
                yield br.get_config()
3464
3466
            except errors.NotBranchError:
3465
3467
                yield LocationConfig(directory)