652
652
"""Create the default hooks.
655
hooks.Hooks.__init__(self)
656
self.create_hook(hooks.HookPoint('start_commit',
655
hooks.Hooks.__init__(self, "bzrlib.mutabletree", "MutableTree.hooks")
656
self.add_hook('start_commit',
657
657
"Called before a commit is performed on a tree. The start commit "
658
658
"hook is able to change the tree before the commit takes place. "
659
659
"start_commit is called with the bzrlib.mutabletree.MutableTree "
660
"that the commit is being performed on.", (1, 4), None))
661
self.create_hook(hooks.HookPoint('post_commit',
660
"that the commit is being performed on.", (1, 4))
661
self.add_hook('post_commit',
662
662
"Called after a commit is performed on a tree. The hook is "
663
663
"called with a bzrlib.mutabletree.PostCommitHookParams object. "
664
664
"The mutable tree the commit was performed on is available via "
665
"the mutable_tree attribute of that object.", (2, 0), None))
665
"the mutable_tree attribute of that object.", (2, 0))
668
668
# install the default hooks into the MutableTree class.