/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 02:11:05 UTC
  • mfrom: (7490.40.78 work)
  • mto: This revision was merged to the branch mainline in revision 7520.
  • Revision ID: jelmer@jelmer.uk-20200728021105-fzq7g6f8bl1g0aet
Merge lp:brz/3.1.

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):