~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-30 05:43:20 UTC
  • mfrom: (3054.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20071130054320-b4oer0rcbiy2ouzg
Bazaar User Guide for 1.0rc (Ian Clatworthy)

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>`_.