[darcs-users] Pushing to an FTP location
Eric Y. Kow
eric.kow at gmail.com
Sat Jul 29 09:18:05 UTC 2006
On Sat, Jul 29, 2006 at 03:43:03 -0400, Vyacheslav Akhmechet wrote:
> If not, would it be hard to implement for someone who has
> never looked at darcs codebase (but isn't a complete Haskell newbie)?
This is a task I might shy away from if I were new to darcs-hacking.
> This feature would *significantly* ease my life and I'd like to know
> whether it's planned and if not how much effort would it take for me
> to implement it.
Push works by creating a patch bundle, and then running darcs apply in
the target repository using that patch bundle (quoting the manual). In
order to get push-by-FTP to work, you'd have to solve the more general
problem of doing darcs apply on a remote location. I don't know how I
would do that.
Perhaps a rough sketch of an idea would be based on having a local
mirror of the remote repository. A remote apply would then
go a little like this:
1) Lock the remote repository
2) Update the mirror (pull)
3) Do darcs apply, but at the same time, log all the files that
are modified by darcs, even/especially stuff in _darcs.
It might help to distinguish between deleted and added/updated
files. Note that mv would probably have to be recorded as
4) Using the log, update all the relevant files on the remote
end. In your case, this would consist of asking ftp to
delete and upload stuff.
5) Unlock the remote repository
Anybody have any other (hopefully simpler, more elegant) ideas?
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
Size: 186 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-users/attachments/20060729/7649ad95/attachment.pgp
More information about the darcs-users