/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/commands.py

  • Committer: Andrew Bennetts
  • Date: 2010-01-11 12:37:53 UTC
  • mto: This revision was merged to the branch mainline in revision 4948.
  • Revision ID: andrew.bennetts@canonical.com-20100111123753-w88kec1ny3sngod4
Fix bzrlib.test.commands.*; they need to use 'run_direct' not 'run' so that the OperationWithCleanups is used.

Show diffs side-by-side

added added

removed removed

Lines of Context:
657
657
 
658
658
        self._setup_outf()
659
659
 
660
 
        return self._operation.run_simple(**all_cmd_args)
 
660
        return self.run_direct(**all_cmd_args)
 
661
 
 
662
    def run_direct(self, *args, **kwargs):
 
663
        """Call run directly with objects (without parsing an argv list)."""
 
664
        return self._operation.run_simple(*args, **kwargs)
661
665
 
662
666
    def run(self):
663
667
        """Actually run the command.