~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

Merge in knit repository use of knits - still not a stable format, but can be experimented with.

Show diffs side-by-side

added added

removed removed

Lines of Context:
138
138
            fp = open(self.abspath(relpath), 'ab')
139
139
        except (IOError, OSError),e:
140
140
            self._translate_error(e, relpath)
 
141
        result = fp.tell()
141
142
        self._pump(f, fp)
 
143
        return result
142
144
 
143
145
    def copy(self, rel_from, rel_to):
144
146
        """Copy the item at rel_from to the location at rel_to"""
267
269
        except (IOError, OSError),e:
268
270
            self._translate_error(e, path)
269
271
 
 
272
 
270
273
class ScratchTransport(LocalTransport):
271
274
    """A transport that works in a temporary dir and cleans up after itself.
272
275