~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-10-08 07:13:14 UTC
  • mfrom: (5463.1.2 trunk)
  • Revision ID: pqm@pqm.ubuntu.com-20101008071314-um52guvl7sel5r0h
(mbp) reset global verbosity after each command and test (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
687
687
 
688
688
        self._setup_outf()
689
689
 
690
 
        return self.run(**all_cmd_args)
 
690
        try:
 
691
            return self.run(**all_cmd_args)
 
692
        finally:
 
693
            # reset it, so that other commands run in the same process won't
 
694
            # inherit state
 
695
            trace.set_verbosity_level(0)
691
696
 
692
697
    def _setup_run(self):
693
698
        """Wrap the defined run method on self with a cleanup.