Package: devscripts
Version: 2.10.48
Severity: wishlist
Tags: patch

I think we should use bzr+ssh rather than sftp for 'debcheckout -a' from
bzr.debian.org. It seems to work fine, and in general bzr+ssh will be
faster; sftp has to transfer all the branch data over to the client in
order for the client to do anything with it, but bzr+ssh runs a bzr
process on the server and talks to it using its own more efficient
protocol.

Trivial patch attached.

Thanks,

-- 
Colin Watson                                       [[email protected]]
Index: scripts/debcheckout.pl
===================================================================
--- scripts/debcheckout.pl	(revision 1862)
+++ scripts/debcheckout.pl	(working copy)
@@ -385,7 +385,7 @@
 
     switch ($repo_type) {
 	case "bzr" {
-	    $url =~ s|^[\w+]+://(bzr\.debian\.org)/(.*)|sftp://$user$1/bzr/$2|;
+	    $url =~ s|^[\w+]+://(bzr\.debian\.org)/(.*)|bzr+ssh://$user$1/bzr/$2|;
 	    $url =~ s[^\w+://(?:(bazaar|code)\.)?(launchpad\.net/.*)][bzr+ssh://${user}bazaar.$2];
 	}
 	case "darcs"  {

Reply via email to