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

  • Committer: Vincent Ladeuil
  • Date: 2010-05-14 09:32:51 UTC
  • mto: (5234.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5234.
  • Revision ID: v.ladeuil+lp@free.fr-20100514093251-b6308483r0h6p4dv
Subunit stream handling.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3592
3592
                raise errors.BzrCommandError("subunit not available. subunit "
3593
3593
                    "needs to be installed to use --subunit.")
3594
3594
            self.additional_selftest_args['runner_class'] = SubUnitBzrRunner
 
3595
            # On Windows, disable automatic conversion of '\n' to '\r\n' in
 
3596
            # stdout, which would corrupt the subunit stream. 
 
3597
            # FIXME: This has been fixed in subunit trunk (>0.0.5) so the
 
3598
            # following code can be deleted when it's sufficiently deployed
 
3599
            # -- vila/mgz 20100514
 
3600
            if (sys.platform == "win32"
 
3601
                and getattr(sys.stdout, 'fileno', None) is not None):
 
3602
                import msvcrt
 
3603
                msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
3595
3604
        if parallel:
3596
3605
            self.additional_selftest_args.setdefault(
3597
3606
                'suite_decorators', []).append(parallel)