/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Robert Collins
  • Date: 2009-02-11 12:49:50 UTC
  • mto: (4000.2.2 test-result-registry)
  • mto: This revision was merged to the branch mainline in revision 4003.
  • Revision ID: robertc@robertcollins.net-20090211124950-70c4aa2a8ub65d0s
Add a new hook Commands['extend_command'] for plugins that want to alter commands without overriding the entire command.

Show diffs side-by-side

added added

removed removed

Lines of Context:
808
808
            bzrlib.mutabletree.MutableTree: bzrlib.mutabletree.MutableTree.hooks,
809
809
            bzrlib.smart.client._SmartClient: bzrlib.smart.client._SmartClient.hooks,
810
810
            bzrlib.smart.server.SmartTCPServer: bzrlib.smart.server.SmartTCPServer.hooks,
 
811
            bzrlib.commands.Command: bzrlib.commands.Command.hooks,
811
812
            }
812
813
        self.addCleanup(self._restoreHooks)
813
814
        # reset all hooks to an empty instance of the appropriate type
814
815
        bzrlib.branch.Branch.hooks = bzrlib.branch.BranchHooks()
815
816
        bzrlib.smart.client._SmartClient.hooks = bzrlib.smart.client.SmartClientHooks()
816
817
        bzrlib.smart.server.SmartTCPServer.hooks = bzrlib.smart.server.SmartServerHooks()
 
818
        bzrlib.commands.Command.hooks = bzrlib.commands.CommandHooks()
817
819
 
818
820
    def _silenceUI(self):
819
821
        """Turn off UI for duration of test"""