~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
        except (IOError, OSError),e:
165
165
            self._translate_error(e, path)
166
166
        try:
167
 
            self._pump(f, fp)
 
167
            length = self._pump(f, fp)
168
168
            fp.commit()
169
169
        finally:
170
170
            fp.close()
 
171
        return length
171
172
 
172
173
    def put_bytes(self, relpath, bytes, mode=None):
173
174
        """Copy the string into the location.