~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.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:
91
91
        self._check_parent(_abspath)
92
92
        orig_content, orig_mode = self._files.get(_abspath, ("", None))
93
93
        self._files[_abspath] = (orig_content + f.read(), orig_mode)
 
94
        return len(orig_content)
94
95
 
95
96
    def _check_parent(self, _abspath):
96
97
        dir = os.path.dirname(_abspath)