git-annex/Remote
Joey Hess 6c565ec905 external special remotes mostly implemented (untested)
This has not been tested at all. It compiles!

The only known missing things are support for encryption, and for get/set
of special remote configuration, and of key state. (The latter needs
separate work to add a new per-key log file to store that state.)

Only thing I don't much like is that initremote needs to be passed both
type=external and externaltype=foo. It would be better to have just
type=foo

Most of this is quite straightforward code, that largely wrote itself given
the types. The only tricky parts were:

* Need to lock the remote when using it to eg make a request, because
  in theory git-annex could have multiple threads that each try to use
  a remote at the same time. I don't think that git-annex ever does
  that currently, but better safe than sorry.

* Rather than starting up every external special remote program when
  git-annex starts, they are started only on demand, when first used.
  This will avoid slowdown, especially when running fast git-annex query
  commands. Once started, they keep running until git-annex stops, currently,
  which may not be ideal, but it's hard to know a better time to stop them.

* Bit of a chicken and egg problem with caching the cost of the remote,
  because setting annex-cost in the git config needs the remote to already
  be set up. Managed to finesse that.

This commit was sponsored by Lukas Anzinger.
2013-12-26 18:23:13 -04:00
..
External external special remotes mostly implemented (untested) 2013-12-26 18:23:13 -04:00
Helper map: Work when there are gcrypt remotes. 2013-11-04 14:14:44 -04:00
Bup.hs assistant: Support repairing git remotes that are locally accessible 2013-10-27 15:38:59 -04:00
Directory.hs gcrypt, bup: Fix bug that prevented using these special remotes with encryption=pubkey. 2013-11-02 16:37:28 -04:00
External.hs external special remotes mostly implemented (untested) 2013-12-26 18:23:13 -04:00
GCrypt.hs really fix gcrypt for 7be69a2491 2013-11-02 20:10:54 -04:00
Git.hs gcrypt, bup: Fix bug that prevented using these special remotes with encryption=pubkey. 2013-11-02 16:37:28 -04:00
Glacier.hs assistant: Support repairing git remotes that are locally accessible 2013-10-27 15:38:59 -04:00
Hook.hs external special remotes mostly implemented (untested) 2013-12-26 18:23:13 -04:00
List.hs external special remotes mostly implemented (untested) 2013-12-26 18:23:13 -04:00
Rsync.hs pull in Win32-extras, to be able to get current process id in Windows 2013-12-11 00:15:10 -04:00
S3.hs assistant: Support repairing git remotes that are locally accessible 2013-10-27 15:38:59 -04:00
Web.hs clean import list 2013-11-02 19:55:18 -04:00
WebDAV.hs Deal with box.com changing the url of their webdav endpoint. 2013-12-02 16:01:20 -04:00