/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: Canonical.com Patch Queue Manager
  • Date: 2010-05-21 13:36:51 UTC
  • mfrom: (5243.2.1 readdir_cleanup)
  • Revision ID: pqm@pqm.ubuntu.com-20100521133651-p62dndo2giy5ls21
(lifeless) Some cleanups to the readdir pyrex code for a little efficiency
 and to avoid compile warnings. (John A Meinel)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1336
1336
            except errors.NoWorkingTree:
1337
1337
                source.bzrdir.create_workingtree(revision_id)
1338
1338
                return
1339
 
 
1340
 
        if not lightweight:
1341
 
            message = ('Copying history to "%s". '
1342
 
                'To checkout without local history use --lightweight.' % to_location)
1343
 
            ui.ui_factory.show_message(message)
1344
1339
        source.create_checkout(to_location, revision_id, lightweight,
1345
1340
                               accelerator_tree, hardlink)
1346
1341
 
3594
3589
            self.additional_selftest_args['runner_class'] = SubUnitBzrRunner
3595
3590
            # On Windows, disable automatic conversion of '\n' to '\r\n' in
3596
3591
            # stdout, which would corrupt the subunit stream. 
3597
 
            if sys.platform == "win32" and sys.stdout.fileno() >= 0:
 
3592
            # FIXME: This has been fixed in subunit trunk (>0.0.5) so the
 
3593
            # following code can be deleted when it's sufficiently deployed
 
3594
            # -- vila/mgz 20100514
 
3595
            if (sys.platform == "win32"
 
3596
                and getattr(sys.stdout, 'fileno', None) is not None):
3598
3597
                import msvcrt
3599
3598
                msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
3600
3599
        if parallel: