git-annex/Assistant/WebApp
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
..
Configurators check that ~/Desktop/annex can be written to; fall back to ~/annex when not 2013-12-24 17:04:07 -04:00
Common.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
Configurators.hs hlint 2013-10-02 01:06:59 -04:00
Control.hs pull in Win32-extras, to be able to get current process id in Windows 2013-12-11 00:15:10 -04:00
DashBoard.hs remove some unused vars 2013-12-18 22:39:15 -04:00
Documentation.hs hlint 2013-10-02 01:06:59 -04:00
Form.hs work around OSX mavericks' broken cpp 2013-11-14 13:49:11 -04:00
Gpg.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
MakeRemote.hs external special remotes mostly implemented (untested) 2013-12-26 18:23:13 -04:00
Notifications.hs fix compat with old yesod 2013-11-25 15:14:34 -04:00
OtherRepos.hs replace horrible old daemon restart code with new method 2013-11-23 15:50:17 -04:00
Page.hs move all static site files out of subdirectories 2013-12-09 14:38:22 -04:00
Repair.hs assistant: Support repairing git remotes that are locally accessible 2013-10-27 15:38:59 -04:00
RepoId.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
RepoList.hs external special remotes mostly implemented (untested) 2013-12-26 18:23:13 -04:00
routes Revert "add /dashboard route as an alias for /" 2013-12-09 17:26:25 -04:00
SideBar.hs restart on upgrade is working, including automatic restart 2013-11-23 00:54:08 -04:00
Types.hs move all static site files out of subdirectories 2013-12-09 14:38:22 -04:00