~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/remote.py

  • Committer: Andrew Bennetts
  • Date: 2007-08-30 08:11:54 UTC
  • mfrom: (2766 +trunk)
  • mto: (2535.3.55 repo-refactor)
  • mto: This revision was merged to the branch mainline in revision 2772.
  • Revision ID: andrew.bennetts@canonical.com-20070830081154-16hebp2xwr15x2hc
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
213
213
            self._serialise_optional_mode(mode))
214
214
        self._translate_error(resp)
215
215
 
 
216
    def open_write_stream(self, relpath, mode=None):
 
217
        """See Transport.open_write_stream."""
 
218
        self.put_bytes(relpath, "", mode)
 
219
        result = transport.AppendBasedFileStream(self, relpath)
 
220
        transport._file_streams[self.abspath(relpath)] = result
 
221
        return result
 
222
 
216
223
    def put_bytes(self, relpath, upload_contents, mode=None):
217
224
        # FIXME: upload_file is probably not safe for non-ascii characters -
218
225
        # should probably just pass all parameters as length-delimited