plugin: sftp transport
Robey Pointer
robey at lag.net
Tue Oct 18 19:04:15 BST 2005
Here's a plugin for SFTP branch support using paramiko. It works as
of at least bzr.dev at 1310, but the Transport interface seems to be in
flux so... "Past performance does not guarantee future results." ;)
It requires at least verison 1.4 of paramiko, though 1.5 is probably
better:
http://www.lag.net/paramiko/
I implemented the write support, too, but did NOT test it yet, since
I'm not sure that part of the Transport API is really shaken out yet
(does anything use it?). It works at least well enough for me to do:
$ bzr branch sftp://robey@example.com/foo/bar/stuff
Read and write locks aren't supported, just like with HTTP. There's
probably something clever I can do there, assuming we only care about
read/write locking against other bzr-over-sftp instances, but I
haven't put much thought into it.
You should just be able to stick this file into your ~/.bazaar/
plugins/. If there's demand, I'll make a bzr branch for holding it,
but it's pretty small right now.
Oh yeah, this is mostly just ported from my last version, except
using the new Transport API (which has been cleaned up a lot --
thanks). I think probably the 'stat' call should go away and be
replaced by more specific calls -- there's no way you're going to get
'stat' to work over HTTP. :)
robey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sftp.py
Type: text/x-python-script
Size: 16406 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051018/8db3aa49/attachment.bin
More information about the bazaar
mailing list