~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Robert Collins
  • Date: 2007-01-30 10:41:04 UTC
  • mto: This revision was merged to the branch mainline in revision 2246.
  • Revision ID: robertc@robertcollins.net-20070130104104-wsikhrgretspg86m
Remove the static DefaultHooks method from Branch, replacing it with a derived dict BranchHooks object, which is easier to use and provides a place to put the policy-checking add method discussed on list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
574
574
        self.addCleanup(self._restoreHooks)
575
575
        # this list of hooks must be kept in sync with the defaults
576
576
        # in branch.py
577
 
        bzrlib.branch.Branch.hooks = bzrlib.branch.Branch.DefaultHooks()
 
577
        bzrlib.branch.Branch.hooks = bzrlib.branch.BranchHooks()
578
578
 
579
579
    def _silenceUI(self):
580
580
        """Turn off UI for duration of test"""