[PATCH] Branch and pull-- now with remote

Robey Pointer robey at lag.net
Tue Jun 21 18:45:05 BST 2005


On 13 Jun 2005, at 4:39, Erik Bågfors wrote:

> On 6/7/05, Robey Pointer <robey at lag.net> wrote:
>
>>
>> On 6 Jun 2005, at 6:29, Aaron Bentley wrote:
>>
>>
>>
>>
>>> -----BEGIN PGP SIGNED MESSAGE-----
>>> Hash: SHA1
>>>
>>> Martin Pool wrote:
>>> | I think that would be great too.
>>> |
>>> | One way would be to use sftp, which can do everything over a  
>>> single
>>> | connection and can pipeline.  I have some Python code that
>>> implements
>>> | part of sftp, or there might be a properly finished library around
>>> | somewhere.
>>>
>>> There's this, but I never actually used it:
>>>
>>> http://www.lag.net/paramiko/
>>>
>>>
>>>
>>
>> Thanks for the plug. ;)
>>
>> If you all need any SFTP support that's not already there, let me
>> know and I'll add it, because I'm really excited by bzr.
>>
>
> Robey,
>
> I have added readonly support for SFTP with the use of paramiko now.
> But, If I do "bzr log sftp://bagfors@localhost//tmp/bzr" it always
> dies after a while, with an error in sftp_client.py. It works for
> about 100 revisions :)
>
> The error is an IOError.

Sorry for the late reply.  I was in a bicycle-vs-car accident a  
little over a week ago and am still catching up on email.  Details  
for the curious here:
     http://www.livejournal.com/users/robey/35058.html

Could you email me a copy of your paramiko.log for clues?  (Feel free  
to strip out any passwords or sensitive info.)  I can try to debug  
this off-list.


>
> Once I get this working it should be fairly simple to get read/write
> working.  The question is just how to do locking. I assume using
> lockfiles?

Newer SFTP protocol versions support file locking, and I've been  
meaning to try adding support for some of those new things (in the  
hopes that SFTP servers will be implementing them soon).  But until  
then lockfiles should work. (Is that what tla/arch does? I never dug  
into the tla code enough to figure out what was going on there...)

I've been using paramiko to run a tla archive (hosting paramiko  
itself, naturally ;) so I have pretty good confidence in it, in general.

robey





More information about the bazaar mailing list