O'Reilly logo

Bazaar Version Control by Janos Gyerik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a plugin

Plugins can serve various kinds of purposes, such as the following:

  • Adding new Bazaar commands
  • Extending the functionality of existing commands
  • Hooking into the version control workflow and getting triggered by events, such as commits

Regardless of the purpose, the main steps of creating a plugin are the same:

  1. Choose a name for the plugin
  2. Create the plugin directory somewhere on the path searched by Bazaar
  3. Implement the functionality following best practices
  4. Implement self-tests
  5. Polish and finalize
  6. Optionally register in the official plugins guide

In this section, we will review these steps briefly. In the following sections, we will show how to apply these steps in the context of example plugins that extend Bazaar in different ways.

Using ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required