/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 doc/en/user-guide/hooks.txt

  • Committer: Lukáš Lalinský
  • Date: 2007-12-17 17:28:25 UTC
  • mfrom: (3120 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3123.
  • Revision ID: lalinsky@gmail.com-20071217172825-tr3pqm1mhvs3gwnn
Merge bzr.dev.

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
 
To use a hook, you should write a `plugin <plugins.html>`_.  Instead of
 
11
Using hooks
 
12
-----------
 
13
 
 
14
To use a hook, you should `write a plugin <#writing-a-plugin>`_.  Instead of
12
15
creating a new command, this plugin will define and install the hook.  Here's
13
16
an example::
14
17
 
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
 
44
 
For a complete list of hooks and their parameters, see the `Hooks Reference
45
 
<../user-reference/hooks.html>`_.
 
47
Standard hooks
 
48
--------------
 
49
 
 
50
For a complete list of hooks and their parameters, see `Hooks
 
51
<../user-reference/bzr_man.html#hooks>`_ in the User Reference.