/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
2977.1.1 by Ian Clatworthy
First cut at new look User Guide including chapters 1 and 2
1
Using plugins
2
=============
3
6622.1.24 by Jelmer Vernooij
More doc renames.
4
.. Information on how to use plugins in Breezy.
2977.1.1 by Ian Clatworthy
First cut at new look User Guide including chapters 1 and 2
5
6
What is a plugin?
7
-----------------
8
6622.1.24 by Jelmer Vernooij
More doc renames.
9
A plugin is an external component for Breezy that is typically made by
10
third parties. A plugin is capable of augmenting Breezy by adding new
11
functionality.  A plugin can also change current Breezy behavior by
2977.1.18 by Ian Clatworthy
chapter 2 tweaks
12
replacing current functionality. Sample applications of plugins are:
13
14
* overriding commands
15
* adding new commands
16
* providing additional network transports
17
* customizing log output.
4853.1.1 by Patrick Regan
Removed trailing whitespace from files in doc directory
18
2977.1.18 by Ian Clatworthy
chapter 2 tweaks
19
The sky is the limit for the customization that can be done through plugins.
20
In fact, plugins often work as a way for developers to test new features for
6622.1.24 by Jelmer Vernooij
More doc renames.
21
Breezy prior to inclusion in the official codebase. Plugins are helpful
2977.1.18 by Ian Clatworthy
chapter 2 tweaks
22
at feature retirement time as well, e.g. deprecated file formats may one
6622.1.24 by Jelmer Vernooij
More doc renames.
23
day be removed from the Breezy core and be made available as a plugin instead.
2977.1.18 by Ian Clatworthy
chapter 2 tweaks
24
25
Plugins are good for users, good for external developers and good for
6622.1.24 by Jelmer Vernooij
More doc renames.
26
Breezy itself.
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
27
4853.1.1 by Patrick Regan
Removed trailing whitespace from files in doc directory
28
Where to find plugins
2977.1.1 by Ian Clatworthy
First cut at new look User Guide including chapters 1 and 2
29
---------------------
30
7528 by Gustav Hartvigsson
Clean up, clarification.
31
The old plugins for Bazaar can be found at 
32
<http://wiki.bazaar.canonical.com/BzrPlugins>, these are not guareteed to work
33
with Breezy.
34
35
How to handle Breezy plugins is to be determined.
1610.2.1 by James Blackwell
Copied in docs for wiki & First round cleanup
36
4853.1.1 by Patrick Regan
Removed trailing whitespace from files in doc directory
37
How to install a plugin
2977.1.1 by Ian Clatworthy
First cut at new look User Guide including chapters 1 and 2
38
-----------------------
39
2977.1.18 by Ian Clatworthy
chapter 2 tweaks
40
Installing a plugin is very easy! If not already created, create a
6622.1.24 by Jelmer Vernooij
More doc renames.
41
``plugins`` directory under your Breezy configuration directory,
7290.2.1 by Jelmer Vernooij
Update references to home location.
42
``~/.config/breezy/`` on Unix and
6622.1.24 by Jelmer Vernooij
More doc renames.
43
``C:\Documents and Settings\<username>\Application Data\Breezy\2.0\``
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
44
on Windows. Within this directory (referred to as $BRZ_HOME below),
3104.2.5 by Ian Clatworthy
fix some broken links and make doc more Windows user friendly
45
each plugin is placed in its own subdirectory.
2601.1.3 by James Westby
Put plugin installation instructions before how to write them.
46
6622.1.24 by Jelmer Vernooij
More doc renames.
47
Plugins work particularly well with Breezy branches. For example, to
48
install the brztools plugins for your main user account on GNU/Linux,
4853.1.1 by Patrick Regan
Removed trailing whitespace from files in doc directory
49
one can perform the following::
2601.1.3 by James Westby
Put plugin installation instructions before how to write them.
50
6622.1.24 by Jelmer Vernooij
More doc renames.
51
    brz branch http://panoramicfeedback.com/opensource/brz/brztools
7290.2.1 by Jelmer Vernooij
Update references to home location.
52
    ~/.config/breezy/plugins/brztools
2601.1.3 by James Westby
Put plugin installation instructions before how to write them.
53
3104.2.5 by Ian Clatworthy
fix some broken links and make doc more Windows user friendly
54
When installing plugins, the directories that you install them in must
2601.1.3 by James Westby
Put plugin installation instructions before how to write them.
55
be valid python identifiers. This means that they can only contain
56
certain characters, notably they cannot contain hyphens (``-``). Rather
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
57
than installing ``brz-gtk`` to ``$BRZ_HOME/plugins/brz-gtk``, install it
58
to ``$BRZ_HOME/plugins/gtk``.
2601.1.3 by James Westby
Put plugin installation instructions before how to write them.
59
2977.1.18 by Ian Clatworthy
chapter 2 tweaks
60
Alternative plugin locations
61
----------------------------
62
4628.2.3 by Vincent Ladeuil
Update doc and add NEWS entry.
63
If you have the necessary permissions, plugins can also be installed on a
64
system-wide basis.  One can additionally override the personal plugins
7490.130.1 by Jelmer Vernooij
Rename bzr to brz in a few more places.
65
location by setting the environment variable ``BRZ_PLUGIN_PATH`` (see `User
6622.1.24 by Jelmer Vernooij
More doc renames.
66
Reference <../user-reference/configuration-help.html#brz-plugin-path>`_ 
5050.38.2 by Alexander Belchenko
Change links to user-reference/bzr_man.html to corresponding pages everywhere in the User Guide
67
for a detailed explanation).
2977.1.18 by Ian Clatworthy
chapter 2 tweaks
68
2977.1.1 by Ian Clatworthy
First cut at new look User Guide including chapters 1 and 2
69
Listing the installed plugins
70
-----------------------------
71
72
To do this, use the plugins command like this::
73
6622.1.24 by Jelmer Vernooij
More doc renames.
74
    brz plugins
2977.1.1 by Ian Clatworthy
First cut at new look User Guide including chapters 1 and 2
75
76
The name, location and version of each plugin installed will be displayed.
77
6622.1.24 by Jelmer Vernooij
More doc renames.
78
New commands added by plugins can be seen by running ``brz help commands``.
2977.1.18 by Ian Clatworthy
chapter 2 tweaks
79
The commands provided by a plugin are shown followed by the name of the
80
plugin in brackets.
81
2977.1.1 by Ian Clatworthy
First cut at new look User Guide including chapters 1 and 2
82
Popular plugins
83
---------------
84
2977.1.9 by Ian Clatworthy
first cut at Distributed collaboration chapter
85
Here is a sample of some of the more popular plugins.
2977.1.1 by Ian Clatworthy
First cut at new look User Guide including chapters 1 and 2
86
2977.1.9 by Ian Clatworthy
first cut at Distributed collaboration chapter
87
  ================ ================= ==================================
88
  Category         Name              Description
89
  ================ ================= ==================================
90
  GUI              QBzr              Qt-based GUI tools
6622.1.24 by Jelmer Vernooij
More doc renames.
91
  GUI              brz-gtk           GTK-based GUI tools
92
  GUI              brz-eclipse       Eclipse integration
93
  General          brztools          misc. enhancements including shelf
2977.1.9 by Ian Clatworthy
first cut at Distributed collaboration chapter
94
  General          difftools         external diff tool helper
95
  General          extmerge          external merge tool helper
6622.1.24 by Jelmer Vernooij
More doc renames.
96
  Integration      brz-svn           use Subversion as a repository
2977.1.9 by Ian Clatworthy
first cut at Distributed collaboration chapter
97
  Migration        cvsps             migrate CVS patch-sets
98
  ================ ================= ==================================
2977.1.1 by Ian Clatworthy
First cut at new look User Guide including chapters 1 and 2
99
100
If you wish to write your own plugins, it is not difficult to do.
4634.39.41 by Ian Clatworthy
Fix the broken links in the User Guide
101
See `Writing a plugin <writing a plugin.html>`_ in the appendices to get
102
started.