~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/status.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:
373
373
    status command has finished printing the status.
374
374
    """
375
375
 
376
 
    def __init__(self, module_name, member_name):
 
376
    def __init__(self):
377
377
        """Create the default hooks.
378
378
 
379
379
        These are all empty initially, because by default nothing should get
380
380
        notified.
381
381
        """
382
 
        _mod_hooks.Hooks.__init__(self, module_name, member_name)
 
382
        _mod_hooks.Hooks.__init__(self, "bzrlib.status", "hooks")
383
383
        self.add_hook('post_status',
384
384
            "Called with argument StatusHookParams after Bazaar has "
385
385
            "displayed the status. StatusHookParams has the attributes "
460
460
        params.to_file.write('See "bzr shelve --list" for details.\n')
461
461
 
462
462
 
463
 
hooks = StatusHooks("bzrlib.status", "hooks")
 
463
hooks = StatusHooks()
464
464
 
465
465
hooks.install_named_hook('post_status', _show_shelve_summary, 'bzr status')