~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/remote.py

  • Committer: Alexander Belchenko
  • Date: 2007-10-04 05:50:44 UTC
  • mfrom: (2881 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2884.
  • Revision ID: bialix@ukr.net-20071004055044-pb88kgkfayawro8n
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
from bzrlib.smart import client, medium, protocol
37
37
 
38
38
# must do this otherwise urllib can't parse the urls properly :(
39
 
for scheme in ['ssh', 'bzr', 'bzr+loopback', 'bzr+ssh', 'bzr+http']:
 
39
for scheme in ['ssh', 'bzr', 'bzr+loopback', 'bzr+ssh', 'bzr+http', 'bzr+https']:
40
40
    transport.register_urlparse_netloc_protocol(scheme)
41
41
del scheme
42
42
 
234
234
            (self._remote_path(relpath), self._serialise_optional_mode(mode)),
235
235
            upload_contents)
236
236
        self._translate_error(resp)
 
237
        return len(upload_contents)
237
238
 
238
239
    def put_bytes_non_atomic(self, relpath, bytes, mode=None,
239
240
                             create_parent_dir=False,
450
451
 
451
452
    def _build_medium(self):
452
453
        assert self.base.startswith('bzr://')
453
 
        if self._port is None:
454
 
            self._port = BZR_DEFAULT_PORT
455
454
        return medium.SmartTCPClientMedium(self._host, self._port), None
456
455
 
457
456
 
483
482
    """
484
483
 
485
484
    def __init__(self, base, _from_transport=None, http_transport=None):
486
 
        assert base.startswith('bzr+http://')
 
485
        assert ( base.startswith('bzr+http://') or base.startswith('bzr+https://') )
487
486
 
488
487
        if http_transport is None:
489
488
            # FIXME: the password may be lost here because it appears in the