~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: 2008-01-15 00:34:05 UTC
  • mfrom: (3104.4.7 bzr-http-client)
  • Revision ID: pqm@pqm.ubuntu.com-20080115003405-jfuumkpctmvl2e4r
(andrew) Calculate remote path relative to the shared medium in
        _SmartClient.

Show diffs side-by-side

added added

removed removed

Lines of Context:
471
471
    def call(self, *args):
472
472
        if 'hpss' in debug.debug_flags:
473
473
            mutter('hpss call:   %s', repr(args)[1:-1])
 
474
            if getattr(self._request._medium, 'base', None) is not None:
 
475
                mutter('             (to %s)', self._request._medium.base)
474
476
            self._request_start_time = time.time()
475
477
        self._write_args(args)
476
478
        self._request.finished_writing()
482
484
        """
483
485
        if 'hpss' in debug.debug_flags:
484
486
            mutter('hpss call w/body: %s (%r...)', repr(args)[1:-1], body[:20])
 
487
            if getattr(self._request._medium, '_path', None) is not None:
 
488
                mutter('                  (to %s)', self._request._medium._path)
485
489
            mutter('              %d bytes', len(body))
486
490
            self._request_start_time = time.time()
487
491
        self._write_args(args)
497
501
        """
498
502
        if 'hpss' in debug.debug_flags:
499
503
            mutter('hpss call w/readv: %s', repr(args)[1:-1])
 
504
            if getattr(self._request._medium, '_path', None) is not None:
 
505
                mutter('                  (to %s)', self._request._medium._path)
500
506
            self._request_start_time = time.time()
501
507
        self._write_args(args)
502
508
        readv_bytes = self._serialise_offsets(body)