~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/remote.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-02-18 13:27:08 UTC
  • mfrom: (4011.4.3 ssh-hints)
  • Revision ID: pqm@pqm.ubuntu.com-20090218132708-okubrahz9exvae9r
(Jelmer) Point out bzr+ssh:// to the user when they use ssh://.

Show diffs side-by-side

added added

removed removed

Lines of Context:
580
580
            return redirected
581
581
 
582
582
 
 
583
class HintingSSHTransport(transport.Transport):
 
584
    """Simple transport that handles ssh:// and points out bzr+ssh://."""
 
585
 
 
586
    def __init__(self, url):
 
587
        raise errors.UnsupportedProtocol(url, 
 
588
            'bzr supports bzr+ssh to operate over ssh, use "bzr+%s".' % url)
 
589
 
 
590
 
583
591
def get_test_permutations():
584
592
    """Return (transport, server) permutations for testing."""
585
593
    ### We may need a little more test framework support to construct an