~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/mutabletree.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-30 11:45:54 UTC
  • mto: (5622.4.1 uninstall-hook)
  • mto: This revision was merged to the branch mainline in revision 5747.
  • Revision ID: jelmer@samba.org-20110330114554-zx7av89umf2dd9an
Don't require arguments to hooks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
648
648
    hooks.
649
649
    """
650
650
 
651
 
    def __init__(self, module_name, member_name):
 
651
    def __init__(self):
652
652
        """Create the default hooks.
653
653
 
654
654
        """
655
 
        hooks.Hooks.__init__(self, module_name, member_name)
 
655
        hooks.Hooks.__init__(self, "bzrlib.mutabletree", "MutableTree.hooks")
656
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. "
666
666
 
667
667
 
668
668
# install the default hooks into the MutableTree class.
669
 
MutableTree.hooks = MutableTreeHooks("bzrlib.mutabletree", "MutableTree.hooks")
 
669
MutableTree.hooks = MutableTreeHooks()
670
670
 
671
671
 
672
672
class PostCommitHookParams(object):