7
Run after ``push`` has completed.
9
The hook signature is (push_result), containing the members
12
Where the data is being pushed from (read locked).
13
This should be the lowest latency branch.
16
The direct location where data is being sent (write locked).
19
Either target_branch, or if the target is a bound branch, it
20
will be the master location (write locked).
23
If the target is a bound branch, this will be the target
24
branch, else it will be None.
27
The revision number (eg 10) of the branch before the push.
30
The revision id (eg joe@foo.com-1234234-aoeua34) before the push.
33
The revision number (eg 12) of the branch after the push.
36
The revision id (eg joe@foo.com-5676566-boa234a) after the push.
41
Run after ``pull`` has completed.
43
The hook signature is (push_result) containing the members
44
(source, local, master, old_revno, old_revid, new_revno, new_revid)
45
where local is the local target branch or None, master is the target
46
master branch, and the rest should be self explanatory. The source
47
is read-locked and the target branches are write-locked. Source will
48
be the local low-latency branch.
53
Run prefore ``commit`` has completed.
55
The hook signature is (local, master, old_revno, old_revid, future_revno,
56
future_revid, tree_delta, future_tree) where old_revno is NULL_REVISION for
57
the first commit to a branch, tree_delta is a TreeDelta object describing
58
changes from the basis revision, and future_tree is an in-memory tree
59
obtained from CommitBuilder.revision_tree(). Hooks MUST NOT modify tree_delta
65
Run after ``commit`` has completed.
67
The hook signature is (local, master, old_revno, old_revid, new_revno,
68
new_revid) old_revid is NULL_REVISION for the first commit to a branch.
73
Run after ``uncommit`` has completed.
75
The api signature is (local, master, old_revno, old_revid, new_revno,
76
new_revid) where local is the local branch or None, master is the target
77
branch, and an empty branch receives new_revno of 0, new_revid of None.
82
Run after the branch's revision history has been modified (push, pull, commit
83
and uncommit can all modify the revision history).
85
The hook signature is (branch, revision_history), and the branch will be
88
See also `Using hooks`_ in the User Guide.
90
.. _Using hooks: ../user-guide/index.html#using-hooks