~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.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:
480
480
class InfoHooks(_mod_hooks.Hooks):
481
481
    """Hooks for the info command."""
482
482
 
483
 
    def __init__(self, module_name, member_name):
484
 
        super(InfoHooks, self).__init__(module_name, member_name)
 
483
    def __init__(self):
 
484
        super(InfoHooks, self).__init__("bzrlib.info", "hooks")
485
485
        self.add_hook('repository',
486
486
            "Invoked when displaying the statistics for a repository. "
487
487
            "repository is called with a statistics dictionary as returned "
488
488
            "by the repository and a file-like object to write to.", (1, 15))
489
489
 
490
490
 
491
 
hooks = InfoHooks("bzrlib.info", "hooks")
 
491
hooks = InfoHooks()