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