~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mutabletree.py

  • Committer: Robert Collins
  • Date: 2009-03-12 06:24:39 UTC
  • mto: This revision was merged to the branch mainline in revision 4133.
  • Revision ID: robertc@robertcollins.net-20090312062439-gigl7rnor6t2cbcz
Migrate existing hooks over to the new HookPoint infrastructure.

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.