~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.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:
1080
1080
class BzrDirHooks(hooks.Hooks):
1081
1081
    """Hooks for BzrDir operations."""
1082
1082
 
1083
 
    def __init__(self, module_name, member_name):
 
1083
    def __init__(self):
1084
1084
        """Create the default hooks."""
1085
 
        hooks.Hooks.__init__(self, module_name, member_name)
 
1085
        hooks.Hooks.__init__(self, "bzrlib.bzrdir", "BzrDir.hooks")
1086
1086
        self.add_hook('pre_open',
1087
1087
            "Invoked before attempting to open a BzrDir with the transport "
1088
1088
            "that the open will use.", (1, 14))
1093
1093
            (2, 2))
1094
1094
 
1095
1095
# install the default hooks
1096
 
BzrDir.hooks = BzrDirHooks("bzrlib.bzrdir", "BzrDir.hooks")
 
1096
BzrDir.hooks = BzrDirHooks()
1097
1097
 
1098
1098
 
1099
1099
class RepoInitHookParams(object):