/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/plugin.py

  • Committer: Jelmer Vernooij
  • Date: 2020-07-28 00:32:38 UTC
  • mfrom: (7490.40.77 work)
  • mto: (7490.40.79 work)
  • mto: This revision was merged to the branch mainline in revision 7521.
  • Revision ID: jelmer@jelmer.uk-20200728003238-vx5u412hn72f18lr
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
    state.plugins = {}
82
82
 
83
83
 
84
 
def load_plugins(path=None, state=None):
 
84
def load_plugins(path=None, state=None, warn_load_problems=True):
85
85
    """Load breezy plugins.
86
86
 
87
87
    The environment variable BRZ_PLUGIN_PATH is considered a delimited
108
108
    if (None, 'entrypoints') in _env_plugin_path():
109
109
        _load_plugins_from_entrypoints(state)
110
110
    state.plugins = plugins()
 
111
    if warn_load_problems:
 
112
        for plugin, errors in state.plugin_warnings.items():
 
113
            for error in errors:
 
114
                trace.warning('%s', error)
111
115
 
112
116
 
113
117
def _load_plugins_from_entrypoints(state):