~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/protocol.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-10-24 07:28:00 UTC
  • mfrom: (2929.1.2 workingtree)
  • Revision ID: pqm@pqm.ubuntu.com-20071024072800-p2qtv2632xrbrs02
(robertc) Use a dictionary to obtain stat caches rather than digging into the dirstate on every path. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
399
399
        while not line or line[-1] != '\n':
400
400
            # TODO: this is inefficient - but tuples are short.
401
401
            new_char = self._request.read_bytes(1)
402
 
            if new_char == '':
403
 
                # end of file encountered reading from server
404
 
                raise errors.ConnectionReset(
405
 
                    "please check connectivity and permissions",
406
 
                    "(and try -Dhpss if further diagnosis is required)")
407
402
            line += new_char
 
403
            assert new_char != '', "end of file reading from server."
408
404
        return line
409
405
 
410
406
    def query_version(self):