~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-09-03 13:07:29 UTC
  • mfrom: (2789.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070903130729-qdcrag0a7vcpzfgm
(Nam Nguyen) Pre-commit hook

Show diffs side-by-side

added added

removed removed

Lines of Context:
999
999
        # is read locked and the target branches write locked. The local
1000
1000
        # branch is the low-latency branch.
1001
1001
        self['post_pull'] = []
 
1002
        # invoked before a commit operation takes place.
 
1003
        # the api signature is
 
1004
        # (local, master, old_revno, old_revid, future_revno, future_revid,
 
1005
        #  tree_delta, future_tree).
 
1006
        # old_revid is NULL_REVISION for the first commit to a branch
 
1007
        # tree_delta is a TreeDelta object describing changes from the basis
 
1008
        # revision, hooks MUST NOT modify this delta
 
1009
        # future_tree is an in-memory tree obtained from
 
1010
        # CommitBuilder.revision_tree() and hooks MUST NOT modify this tree
 
1011
        self['pre_commit'] = []
1002
1012
        # invoked after a commit operation completes.
1003
1013
        # the api signature is 
1004
1014
        # (local, master, old_revno, old_revid, new_revno, new_revid)