~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/weave.py

  • Committer: Patch Queue Manager
  • Date: 2012-01-28 02:39:16 UTC
  • mfrom: (6352.4.6 get-seeks-backwards)
  • Revision ID: pqm@pqm.ubuntu.com-20120128023916-3eosqh9rfscupjb0
(jelmer) Avoid caching complete files in memory when accessing over HTTP.
 (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
920
920
        self._transport = transport
921
921
        self._filemode = filemode
922
922
        try:
923
 
            _read_weave_v5(self._transport.get(name + WeaveFile.WEAVE_SUFFIX), self)
 
923
            f = self._transport.get(name + WeaveFile.WEAVE_SUFFIX)
 
924
            _read_weave_v5(StringIO(f.read()), self)
924
925
        except errors.NoSuchFile:
925
926
            if not create:
926
927
                raise