~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/help_topics/en/hooks.txt

 * ``LockDir`` lock acquisition and release now trigger hooks allowing
   introspection of locking activity. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Hooks
2
 
=====
 
1
Branch Hooks
 
2
============
3
3
 
4
4
post_push
5
5
---------
85
85
The hook signature is (branch, revision_history), and the branch will be
86
86
write-locked.
87
87
 
 
88
 
 
89
PhysicalLock hooks
 
90
==================
 
91
 
 
92
These are hooked into via bzrlib.lock.hooks.
 
93
 
 
94
acquired
 
95
--------
 
96
 
 
97
Called with a LockResult object when a lock has been successfully acquired.
 
98
 
 
99
released
 
100
--------
 
101
 
 
102
Called with a LockResult object when a lock has been successfully released.
 
103
 
 
104
 
88
105
See also `Using hooks`_ in the User Guide.
89
106
 
90
107
.. _Using hooks: ../user-guide/index.html#using-hooks