~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bzrdir.py

Remove indirection through control_files to get transports

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
    BzrDir instances let you create or open any of the things that can be
90
90
    found within .bzr - checkouts, branches and repositories.
91
91
    
92
 
    transport
 
92
    :ivar transport:
93
93
        the transport which this bzr dir is rooted at (i.e. file:///.../.bzr/)
94
 
    root_transport
 
94
    :ivar root_transport:
95
95
        a transport connected to the directory this bzr was opened from
96
96
        (i.e. the parent directory holding the .bzr directory).
97
97
    """
1967
1967
        self.pb.note('  %6d revisions not present', len(self.absent_revisions))
1968
1968
        self.pb.note('  %6d texts', self.text_count)
1969
1969
        self._cleanup_spare_files_after_format4()
1970
 
        self.branch.control_files._transport.put_bytes(
 
1970
        self.branch._transport.put_bytes(
1971
1971
            'branch-format',
1972
1972
            BzrDirFormat5().get_format_string(),
1973
1973
            mode=self.branch.control_files._file_mode)