~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Patch Queue Manager
  • Date: 2012-01-03 12:56:06 UTC
  • mfrom: (6404.4.2 config-cmdline)
  • Revision ID: pqm@pqm.ubuntu.com-20120103125606-36p3u22k8kzbhoqc
(vila) Cleanup the configCommandLineStore implementation. (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2992
2992
        if opts is None:
2993
2993
            opts = {}
2994
2994
        self.options = {}
 
2995
        self.id = 'cmdline'
2995
2996
 
2996
2997
    def _reset(self):
2997
2998
        # The dict should be cleared but not replaced so it can be shared.
3015
3016
        return 'cmdline'
3016
3017
 
3017
3018
    def get_sections(self):
3018
 
        yield self,  self.readonly_section_class('cmdline_overrides',
3019
 
                                                 self.options)
 
3019
        yield self,  self.readonly_section_class(None, self.options)
3020
3020
 
3021
3021
 
3022
3022
class IniFileStore(Store):
3282
3282
        super(ControlStore, self).__init__(bzrdir.transport,
3283
3283
                                          'control.conf',
3284
3284
                                           lock_dir_name='branch_lock')
 
3285
        self.id = 'control'
3285
3286
 
3286
3287
 
3287
3288
class SectionMatcher(object):