[darcs-users] Darcs using scp without sftp

Eric Y. Kow eric.kow at gmail.com
Sat Aug 26 18:24:27 UTC 2006


On Sat, Aug 26, 2006 at 19:36:09 +0100, allan wrote:
> So I have two questions:
> firstly is this arrangement possible currently within darcs?

Unfortunately, no, you cannot substitute scp for stfp, at least, not
directly.

You might be able to write a small script that pretends to be sftp, by
parsing the sftp batch command file and doing an scp for each file to be
sent/received.

It would probably be a very good idea to have ssh enabled, or the
control master functionality because this could potentially involve
a lot of scp operations.

> and secondly if not then is it likely to in the future or is there some 
> fundamental reason why this cannot be done?

Nothing particularly fundamental.  Darcs calls sftp with arguments which
are meaningless to scp.  That being said, a script like the one
suggested above might work.

> p.s. I tried using sshfs to remotely mount the directory in which my 
> remote darcs repository is, this works fine for a "darcs get" and "darcs 
> pull", but a "darcs push" fails because the lock function is not 
> implemented, that is I get this error:
> darcs: takeLock /media/uni_mount/ipc/_darcs/lock in 
> /media/uni_mount/ipc: atomic_create /media/uni_mount/ipc/_darcs/lock in 
> /media/uni_mount/ipc: unsupported operation (Function not implemented)

Oh.  I was hoping sshfs would let people do this.  Oh well.

-- 
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20060826/56ce0799/attachment.pgp 


More information about the darcs-users mailing list