~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mutabletree.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-12 12:00:49 UTC
  • mfrom: (4119.3.3 Hooks.docs)
  • Revision ID: pqm@pqm.ubuntu.com-20090312120049-uxdmf2dfelp5ctva
(robertc) Migrate all hooks into the HookPoint infrastructure.
        (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
569
569
 
570
570
        """
571
571
        hooks.Hooks.__init__(self)
572
 
        # Invoked before a commit is done in a tree. New in 1.4
573
 
        self['start_commit'] = []
 
572
        self.create_hook(hooks.HookPoint('start_commit',
 
573
            "Called before a commit is performed on a tree. The start commit "
 
574
            "hook is able to change the tree before the commit takes place. "
 
575
            "start_commit is called with the bzrlib.tree.MutableTree that the "
 
576
            "commit is being performed on.", (1, 4), None))
574
577
 
575
578
 
576
579
# install the default hooks into the MutableTree class.