/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: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-07-28 02:47:10 UTC
  • mfrom: (7519.1.1 merge-3.1)
  • Revision ID: breezy.the.bot@gmail.com-20200728024710-a2ylds219f1lsl62
Merge lp:brz/3.1.

Merged from https://code.launchpad.net/~jelmer/brz/merge-3.1/+merge/388173

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
    state.plugins = {}
77
77
 
78
78
 
79
 
def load_plugins(path=None, state=None):
 
79
def load_plugins(path=None, state=None, warn_load_problems=True):
80
80
    """Load breezy plugins.
81
81
 
82
82
    The environment variable BRZ_PLUGIN_PATH is considered a delimited
103
103
    if (None, 'entrypoints') in _env_plugin_path():
104
104
        _load_plugins_from_entrypoints(state)
105
105
    state.plugins = plugins()
 
106
    if warn_load_problems:
 
107
        for plugin, errors in state.plugin_warnings.items():
 
108
            for error in errors:
 
109
                trace.warning('%s', error)
106
110
 
107
111
 
108
112
def _load_plugins_from_entrypoints(state):