git-annex/Types
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
..
Backend.hs handle sha*sum's leading \ in checksum with certian unsual filenames 2012-12-20 17:07:10 -04:00
BranchState.hs
Command.hs make "git annex help options" work outside a git repo 2013-11-30 15:18:40 -04:00
Crypto.hs partially complete gcrypt remote (local send done; rest not) 2013-09-07 18:38:00 -04:00
Distribution.hs annex.autoupgrade setting 2013-11-22 16:04:20 -04:00
FileMatcher.hs forgot to add 2013-05-25 13:51:27 -04:00
GitConfig.hs external special remotes mostly implemented (untested) 2013-12-26 18:23:13 -04:00
Group.hs
Key.hs file2key should return Nothing if the backend is empty 2013-11-11 15:41:31 -04:00
KeySource.hs add: Improved detection of files that are modified while being added. 2013-02-14 16:54:36 -04:00
Limit.hs add --want-get and --want-drop options 2013-10-28 14:50:17 -04:00
Messages.hs
Option.hs
Remote.hs webapp: Improve UI around remote that have no annex.uuid set, either because setup of them is incomplete, or because the remote git repository is not a git-annex repository. 2013-11-07 18:02:00 -04:00
ScheduledActivity.hs cronner: run jobs triggered by remotes becoming connected (untested) 2013-10-13 17:14:56 -04:00
StandardGroups.hs hlint 2013-09-25 23:19:01 -04:00
TrustLevel.hs note 2013-09-20 00:04:37 -04:00
UUID.hs