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

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2017-06-17 12:46:13 UTC
  • mfrom: (6703.1.4 export-pot-plugin)
  • Revision ID: breezy.the.bot@gmail.com-20170617124613-wa5ff4m1ux6tu1co
Print an error when 'bzr export-pot' is called with the name of a plugin that doesn't exist.

Merged from https://code.launchpad.net/~jelmer/brz/export-pot-error/+merge/325884

Show diffs side-by-side

added added

removed removed

Lines of Context:
251
251
        _write_command_help(exporter, command)
252
252
 
253
253
    plugins = breezy.global_state.plugins
 
254
    if plugin_name is not None and plugin_name not in breezy.global_state.plugins:
 
255
        raise errors.BzrError(gettext('Plugin %s is not loaded' % plugin_name))
254
256
    core_plugins = set(name for name in plugins
255
257
        if plugins[name].path().startswith(breezy.__path__[0]))
256
258
    # plugins