~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-12-14 07:50:36 UTC
  • mfrom: (3100.1.2 transform-recovery)
  • Revision ID: pqm@pqm.ubuntu.com-20071214075036-o6tv5n85w95m57uq
Fix ImmortalLimbo errors when transform rolls back (Aaron Bentley)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Hooks
2
 
=====
 
1
###############
 
2
Hooks Reference 
 
3
###############
3
4
 
4
5
post_push
5
 
---------
 
6
#########
6
7
 
7
8
Run after ``push`` has completed.
8
9
 
36
37
    The revision id (eg joe@foo.com-5676566-boa234a) after the push.
37
38
 
38
39
post_pull
39
 
---------
40
 
 
 
40
#########
41
41
Run after ``pull`` has completed.
42
42
 
43
43
The hook signature is (push_result) containing the members
48
48
be the local low-latency branch.
49
49
 
50
50
pre_commit
51
 
----------
52
 
 
 
51
##########
53
52
Run prefore ``commit`` has completed.
54
53
 
55
54
The hook signature is (local, master, old_revno, old_revid, future_revno,
60
59
and future_tree.
61
60
 
62
61
post_commit
63
 
-----------
64
 
 
 
62
###########
65
63
Run after ``commit`` has completed.
66
64
 
67
65
The hook signature is (local, master, old_revno, old_revid, new_revno,
68
66
new_revid) old_revid is NULL_REVISION for the first commit to a branch.
69
67
 
70
68
post_uncommit
71
 
-------------
72
 
 
 
69
#############
73
70
Run after ``uncommit`` has completed.
74
71
 
75
72
The api signature is (local, master, old_revno, old_revid, new_revno,
77
74
branch, and an empty branch receives new_revno of 0, new_revid of None.
78
75
 
79
76
set_rh
80
 
------
81
 
 
 
77
######
82
78
Run after the branch's revision history has been modified (push, pull, commit
83
79
and uncommit can all modify the revision history).
84
80
 
85
81
The hook signature is (branch, revision_history), and the branch will be
86
82
write-locked.
87
83
 
88
 
See also `Using hooks`_ in the User Guide.
89
 
 
90
 
.. _Using hooks: ../user-guide/index.html#using-hooks
 
84
See also `Using Hooks <../user-guide/hooks.html>`_.