~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/status.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-10 07:46:15 UTC
  • mfrom: (5844 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5845.
  • Revision ID: jelmer@samba.org-20110510074615-eptod049ndjxc4i7
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
379
379
        These are all empty initially, because by default nothing should get
380
380
        notified.
381
381
        """
382
 
        _mod_hooks.Hooks.__init__(self)
383
 
        self.create_hook(_mod_hooks.HookPoint('post_status',
 
382
        _mod_hooks.Hooks.__init__(self, "bzrlib.status", "hooks")
 
383
        self.add_hook('post_status',
384
384
            "Called with argument StatusHookParams after Bazaar has "
385
385
            "displayed the status. StatusHookParams has the attributes "
386
386
            "(old_tree, new_tree, to_file, versioned, show_ids, short, "
387
387
            "verbose). The last four arguments correspond to the command "
388
388
            "line options specified by the user for the status command. "
389
389
            "to_file is the output stream for writing.",
390
 
            (2, 3), None))
391
 
        self.create_hook(_mod_hooks.HookPoint('pre_status',
 
390
            (2, 3))
 
391
        self.add_hook('pre_status',
392
392
            "Called with argument StatusHookParams before Bazaar "
393
393
            "displays the status. StatusHookParams has the attributes "
394
394
            "(old_tree, new_tree, to_file, versioned, show_ids, short, "
395
395
            "verbose). The last four arguments correspond to the command "
396
396
            "line options specified by the user for the status command. "
397
397
            "to_file is the output stream for writing.",
398
 
            (2, 3), None))
 
398
            (2, 3))
399
399
 
400
400
 
401
401
class StatusHookParams(object):