[PATCH] Branch and pull-- now with remote

Erik Bågfors zindar at gmail.com
Mon Jun 13 12:39:25 BST 2005


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.

[15486]   File "/home/bagfors/src/bzr/bzr.paramiko.sftp/bzrlib/remotesftpbranch.py",
line 64, in get_file
[15486]     f = sftp.open(file)
[15486]   File "/home/bagfors/usr/src/paramiko-1.3/paramiko/sftp_client.py",
line 165, in open
[15486]     t, msg = self._request(CMD_OPEN, filename, imode, attrblock)
[15486]   File "/home/bagfors/usr/src/paramiko-1.3/paramiko/sftp_client.py",
line 396, in _request
[15486]     self._convert_status(msg)
[15486]   File "/home/bagfors/usr/src/paramiko-1.3/paramiko/sftp_client.py",
line 410, in _convert_status
[15486]     raise IOError(text)
[15486] IOError: Failure

Do you have any idea?

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?

Cheers,
Erik




More information about the bazaar mailing list