~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/en/user-guide/hooks.txt

  • Committer: Ian Clatworthy
  • Date: 2007-11-14 03:50:56 UTC
  • mto: (3054.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3055.
  • Revision ID: ian.clatworthy@internode.on.net-20071114035056-72l6odzpby4bcmub
First cut at new look User Guide including chapters 1 and 2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
###########
2
1
Using hooks
3
 
###########
 
2
===========
 
3
 
 
4
What is a hook?
 
5
---------------
4
6
 
5
7
One way to customize Bazaar's behaviour is with *hooks*.  Hooks allow you to
6
8
perform actions before or after certain Bazaar operations.  The operations
7
9
include ``commit``, ``push``, ``pull``, and ``uncommit``.
8
10
 
9
 
Using Hooks
10
 
###########
 
11
Using hooks
 
12
-----------
 
13
 
11
14
To use a hook, you should write a `plugin <plugins.html>`_.  Instead of
12
15
creating a new command, this plugin will define and install the hook.  Here's
13
16
an example::
41
44
full power of Python at your disposal.  Now that you know how to use hooks,
42
45
what you do with them is up to you.
43
46
 
 
47
Standard hooks
 
48
--------------
 
49
 
44
50
For a complete list of hooks and their parameters, see the `Hooks Reference
45
51
<../user-reference/hooks.html>`_.