~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/local.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:
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