/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/transport/remote.py

merge bzr.dev r4154

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
            should only be used for testing purposes; normally this is
91
91
            determined from the medium.
92
92
        """
93
 
        super(RemoteTransport, self).__init__(url,
94
 
                                              _from_transport=_from_transport)
 
93
        super(RemoteTransport, self).__init__(
 
94
            url, _from_transport=_from_transport)
95
95
 
96
96
        # The medium is the connection, except when we need to share it with
97
97
        # other objects (RemoteBzrDir, RemoteRepository etc). In these cases
98
98
        # what we want to share is really the shared connection.
99
99
 
100
 
        if _from_transport is None:
 
100
        if (_from_transport is not None
 
101
            and isinstance(_from_transport, RemoteTransport)):
 
102
            _client = _from_transport._client
 
103
        elif _from_transport is None:
101
104
            # If no _from_transport is specified, we need to intialize the
102
105
            # shared medium.
103
106
            credentials = None
133
136
        # No credentials
134
137
        return None, None
135
138
 
 
139
    def _report_activity(self, bytes, direction):
 
140
        """See Transport._report_activity.
 
141
 
 
142
        Does nothing; the smart medium will report activity triggered by a
 
143
        RemoteTransport.
 
144
        """
 
145
        pass
 
146
 
136
147
    def is_readonly(self):
137
148
        """Smart server transport can do read/write file operations."""
138
149
        try: