~ubuntu-branches/ubuntu/karmic/bzr/karmic-proposed

« back to all changes in this revision

Viewing changes to bzrlib/transport/remote.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2008-05-12 00:14:54 UTC
  • mfrom: (1.1.42 upstream)
  • Revision ID: james.westby@ubuntu.com-20080512001454-yjpajuiocykl48p9
Tags: 1.5~rc1-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
457
457
    """
458
458
 
459
459
    def _build_medium(self):
460
 
        assert self.base.startswith('bzr://')
461
460
        return medium.SmartTCPClientMedium(self._host, self._port), None
462
461
 
463
462
 
469
468
    """
470
469
 
471
470
    def _build_medium(self):
472
 
        assert self.base.startswith('bzr+ssh://')
473
471
        # ssh will prompt the user for a password if needed and if none is
474
472
        # provided but it will not give it back, so no credentials can be
475
473
        # stored.
491
489
    """
492
490
 
493
491
    def __init__(self, base, _from_transport=None, http_transport=None):
494
 
        assert ( base.startswith('bzr+http://') or base.startswith('bzr+https://') )
495
 
 
496
492
        if http_transport is None:
497
493
            # FIXME: the password may be lost here because it appears in the
498
494
            # url only for an intial construction (when the url came from the