~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/sftp.py

  • Committer: Robert Collins
  • Date: 2006-02-28 07:42:57 UTC
  • mto: (1594.2.4 integration)
  • mto: This revision was merged to the branch mainline in revision 1596.
  • Revision ID: robertc@robertcollins.net-20060228074257-a66f0d23e091ce7e
Change the return signature of transport.append and append_multi to return the length of the pre-append content.

Show diffs side-by-side

added added

removed removed

Lines of Context:
501
501
        try:
502
502
            path = self._remote_path(relpath)
503
503
            fout = self._sftp.file(path, 'ab')
 
504
            result = fout.tell()
504
505
            self._pump(f, fout)
 
506
            return result
505
507
        except (IOError, paramiko.SSHException), e:
506
508
            self._translate_io_exception(e, relpath, ': unable to append')
507
509