/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 bzrlib/help_topics/en/hooks.txt

  • Committer: Andrew Bennetts
  • Date: 2008-10-27 06:14:45 UTC
  • mfrom: (3793 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3795.
  • Revision ID: andrew.bennetts@canonical.com-20081027061445-eqt9lz6uw1mbvq4g
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
The class of each hook is given immediately after each hook type below.
16
16
 
17
17
 
 
18
open (Branch)
 
19
-------------
 
20
 
 
21
Called after a Branch object is opened, with the Branch object.
 
22
 
 
23
 
18
24
post_push (Branch)
19
25
------------------
20
26
 
168
174
Please use the ``post_change_branch_tip`` hook instead.
169
175
 
170
176
 
 
177
transform_fallback_location (Branch)
 
178
------------------------------------
 
179
 
 
180
Invoked as a stacked branch activates its fallback locations.
 
181
 
 
182
The hook signature is (branch, url) where:
 
183
 
 
184
  branch
 
185
    The branch being opened.  Note that as it does not yet have its
 
186
    fallback locations activated, the branch should be treated as
 
187
    half-built.
 
188
 
 
189
  url
 
190
    The URL that the branch specified for its fallback location.
 
191
 
 
192
The hook must return a URL for the branch containing the fallback
 
193
location. If multiple hooks are registered, the order in which they 
 
194
will be called is undefined and subject to change.
 
195
 
 
196
(New in 1.9)
 
197
 
 
198
 
171
199
server_started (SmartTCPServer)
172
200
-------------------------------
173
201
 
186
214
 
187
215
Invoked whenever the server stops serving a directory.
188
216
The hook signature is the same as ``server_started``.
 
217
 
 
218
 
 
219
lock_acquired (LockDir)
 
220
----------------------------
 
221
 
 
222
Called with a LockResult object when a lock has been successfully acquired.
 
223
(New in 1.8.)
 
224
 
 
225
lock_released (LockDir)
 
226
----------------------------
 
227
 
 
228
Called with a LockResult object when a lock has been successfully released.
 
229
(New in 1.8.)