/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Jelmer Vernooij
  • Date: 2011-11-22 11:50:36 UTC
  • mto: This revision was merged to the branch mainline in revision 6283.
  • Revision ID: jelmer@samba.org-20111122115036-ldc3ti35j6zvkkfn
Revert RemoteBranchStack / RemoteControlStack changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3425
3425
        self.branch = branch
3426
3426
 
3427
3427
 
 
3428
class RemoteControlStack(_CompatibleStack):
 
3429
    """Remote control-only options stack."""
 
3430
 
 
3431
    def __init__(self, bzrdir):
 
3432
        cstore = ControlStore(bzrdir)
 
3433
        super(RemoteControlStack, self).__init__(
 
3434
            [cstore.get_sections],
 
3435
            cstore)
 
3436
        self.bzrdir = bzrdir
 
3437
 
 
3438
 
 
3439
class RemoteBranchStack(_CompatibleStack):
 
3440
    """Remote branch-only options stack."""
 
3441
 
 
3442
    def __init__(self, branch):
 
3443
        bstore = BranchStore(branch)
 
3444
        super(RemoteBranchStack, self).__init__(
 
3445
            [bstore.get_sections],
 
3446
            bstore)
 
3447
        self.branch = branch
 
3448
 
3428
3449
# Use a an empty dict to initialize an empty configobj avoiding all
3429
3450
# parsing and encoding checks
3430
3451
_quoting_config = configobj.ConfigObj(