~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/hooks.py

  • Committer: Daniel Watkins
  • Date: 2008-03-08 22:47:33 UTC
  • mto: (3394.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 3395.
  • Revision ID: d.m.watkins@warwick.ac.uk-20080308224733-geod8arkvg1ipp8j
Added docs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
        :param a_callable: The callable to be invoked when the hook triggers.
54
54
            The exact signature will depend on the hook - see the __init__ 
55
55
            method of BranchHooks for details on each hook.
 
56
        :param name: A name to associate a_callable with, to show users what is
 
57
            running.
56
58
        """
57
59
        try:
58
60
            self[hook_name].append(a_callable)