What limitations be placed on bzr if paramiko is not used?
John Arbash Meinel
john at arbash-meinel.com
Mon Oct 3 14:25:24 UTC 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10/3/2011 2:11 AM, Ben Finney wrote:
> John Arbash Meinel <john at arbash-meinel.com> writes:
>
>> On 9/30/2011 6:27 PM, Ghee Teo wrote:
>>> The documentation said that paramiko providing sftp support
>>> for bzr. Is that the only functionality that it provides? Can
>>> bzr utilize openssh for ssh operations ?
>>
>> Yes, we can use openssh to do 'bzr+ssh'. We *can* use paramiko
>> for ssh as well, but we default to openssh if it is available.
>
> That's still not quite clear. What will happen in each of these
> cases:
>
> * No SSH library available, access ‘bzr+ssh’ URL * OpenSSH only
> available, access ‘bzr+ssh’ URL * Paramiko only available, access
> ‘bzr+ssh’ URL * OpenSSH and Paramiko available, access ‘bzr+ssh’
> URL
>
> Or, better, could it be phrased as a “When accessing ‘bzr+ssh’
> URLs, Bazaar will use the first available of LibFoo, then LibBar,
> then LibBaz, and finally raise an OhNoesError if none of those
> libraries are available”.
>
If the environment variable BZR_SSH is set, we skip auto-detection of
'best' method. BZR_SSH can be set to:
openssh
sshcorp
lsh
plink
paramiko (if python-paramiko is present)
It can also be set to a path to an executable.
If BZR_SSH is not set, we run "ssh -V", if it is set to the path of an
executable, then we run "$PATH -V" to get the Version string from the
executable. We use that to determine what the implementation is, so
that we know what extra command line arguments to pass.
Otherwise we fail with "errors.SSHVendorNotFound()".
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk6JxdQACgkQJdeBCYSNAAOXWACeMzIS6Wbmdjv31iI2/KHUE1TE
gDUAoKmepyeFsKfE6jA1139PcfJiDy5b
=A0BI
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list