~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.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:
1802
1802
    set_revision_history function is invoked.
1803
1803
    """
1804
1804
 
1805
 
    def __init__(self, module_name, member_name):
 
1805
    def __init__(self):
1806
1806
        """Create the default hooks.
1807
1807
 
1808
1808
        These are all empty initially, because by default nothing should get
1809
1809
        notified.
1810
1810
        """
1811
 
        Hooks.__init__(self, module_name, member_name)
 
1811
        Hooks.__init__(self, "bzrlib.branch", "Branch.hooks")
1812
1812
        self.add_hook('set_rh',
1813
1813
            "Invoked whenever the revision history has been set via "
1814
1814
            "set_revision_history. The api signature is (branch, "
1889
1889
 
1890
1890
 
1891
1891
# install the default hooks into the Branch class.
1892
 
Branch.hooks = BranchHooks("bzrlib.branch", "Branch.hooks")
 
1892
Branch.hooks = BranchHooks()
1893
1893
 
1894
1894
 
1895
1895
class ChangeBranchTipParams(object):