/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 breezy/config.py

  • Committer: Jelmer Vernooij
  • Date: 2017-08-26 19:06:32 UTC
  • mto: This revision was merged to the branch mainline in revision 6773.
  • Revision ID: jelmer@jelmer.uk-20170826190632-nmiqnyff6s4htneh
Use get_global_state>

Show diffs side-by-side

added added

removed removed

Lines of Context:
3870
3870
        return "<config.%s(%s)>" % (self.__class__.__name__, id(self))
3871
3871
 
3872
3872
    def _get_overrides(self):
3873
 
        # FIXME: Hack around library_state.initialize never called
3874
 
        if breezy.global_state is not None:
3875
 
            return breezy.global_state.cmdline_overrides.get_sections()
 
3873
        if breezy._global_state is not None:
 
3874
            # TODO(jelmer): Urgh, this is circular so we can't call breezy.get_global_state()
 
3875
            return breezy._global_state.cmdline_overrides.get_sections()
3876
3876
        return []
3877
3877
 
3878
3878
    def get_shared_store(self, store, state=None):
3889
3889
            otherwise.
3890
3890
        """
3891
3891
        if state is None:
3892
 
            state = breezy.global_state
 
3892
            # TODO(jelmer): Urgh, this is circular so we can't call breezy.get_global_state()
 
3893
            state = breezy._global_state
3893
3894
        if state is None:
3894
3895
            global _shared_stores_at_exit_installed
3895
3896
            stores = _shared_stores