~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.py

  • Committer: Martin Pool
  • Date: 2006-03-09 07:14:10 UTC
  • mfrom: (1600 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1602.
  • Revision ID: mbp@sourcefrog.net-20060309071410-4ab7d54905541c75
[merge] from bzr.dev

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