~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mutabletree.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
520
520
            "called with a bzrlib.mutabletree.PostCommitHookParams object. "
521
521
            "The mutable tree the commit was performed on is available via "
522
522
            "the mutable_tree attribute of that object.", (2, 0))
 
523
        self.add_hook('pre_transform',
 
524
            "Called before a tree transform on this tree. The hook is called "
 
525
            "with the tree that is being transformed and the transform.",
 
526
            (2, 5))
523
527
        self.add_hook('post_build_tree',
524
528
            "Called after a completely new tree is built. The hook is "
525
529
            "called with the tree as its only argument.", (2, 5))
526
 
 
 
530
        self.add_hook('post_transform',
 
531
            "Called after a tree transform has been performed on a tree. "
 
532
            "The hook is called with the tree that is being transformed and "
 
533
            "the transform.",
 
534
            (2, 5))
527
535
 
528
536
# install the default hooks into the MutableTree class.
529
537
MutableTree.hooks = MutableTreeHooks()