~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.py

  • Committer: Robert Collins
  • Date: 2007-08-27 04:19:49 UTC
  • mto: (2592.3.117 repository)
  • mto: This revision was merged to the branch mainline in revision 2885.
  • Revision ID: robertc@robertcollins.net-20070827041949-br263tkuxayldxoc
* ``bzrlib.transport.Transport.put_file`` now returns the number of bytes
  put by the method call, to allow avoiding stat-after write or
  housekeeping in callers. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
158
158
                'undefined', bytes, 0, 1,
159
159
                'put_file must be given a file of bytes, not unicode.')
160
160
        self._files[_abspath] = (bytes, mode)
 
161
        return len(bytes)
161
162
 
162
163
    def mkdir(self, relpath, mode=None):
163
164
        """See Transport.mkdir()."""