Commit graph

16655 commits

Author SHA1 Message Date
Joey Hess
aa3ddb53f7 devblog 2013-12-26 18:42:26 -04:00
Joey Hess
cfcc1c13a0 fix format of sample program 2013-12-26 18:36:57 -04:00
Joey Hess
56ef896a25 Merge branch 'master' of ssh://git-annex.branchable.com 2013-12-26 18:32:26 -04:00
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
Joey Hess
409a85b264 update 2013-12-26 18:20:32 -04:00
Joey Hess
a1d283657b update for external special remotes 2013-12-26 18:18:13 -04:00
Joey Hess
0de9135bc0 external special remote documentation and example script 2013-12-26 18:15:18 -04:00
https://openid.stackexchange.com/user/e65e6d0e-58ba-41de-84cc-1f2ba54cf574
9f7c2294bb fixed markdown formatting 2013-12-26 21:44:35 +00:00
https://openid.stackexchange.com/user/e65e6d0e-58ba-41de-84cc-1f2ba54cf574
89adcde46f Can't see output from git-annex status 2013-12-26 21:32:16 +00:00
https://openid.stackexchange.com/user/e65e6d0e-58ba-41de-84cc-1f2ba54cf574
9824019222 corrected typo in status command 2013-12-26 21:08:43 +00:00
Joey Hess
38694ed582 simplify PROGRESS
Only one transfer will be running at a time, per external special remote.
2013-12-26 16:18:38 -04:00
Joey Hess
b09613ebc7 update haskell patches for new versions in hackage 2013-12-26 16:17:31 -04:00
Joey Hess
7ec27d8d57 install happy and alex into android build chroot 2013-12-26 12:08:29 -04:00
http://sameer.sbuddhe.net/blog/
f92fdfa4ab removed 2013-12-26 10:34:34 +00:00
http://sameer.sbuddhe.net/blog/
475730be33 Added a comment: walkthrough should point to this tip 2013-12-26 08:51:33 +00:00
https://www.google.com/accounts/o8/id?id=AItOawl99Gxq3NPNvwZHp3PDufaknQH4rZb_KKY
8491b81a4a Added a comment 2013-12-26 00:15:59 +00:00
Joey Hess
8803e36814 future-proofing 2013-12-25 20:04:31 -04:00
https://www.google.com/accounts/o8/id?id=AItOawkgy5Qf4bivpTfYPw_yh92OcDlesrVTREg
fbf7865ac9 2013-12-25 22:29:46 +00:00
Joey Hess
72765aa95e typo 2013-12-25 18:28:46 -04:00
Joey Hess
0e2022be95 Merge branch 'master' of ssh://git-annex.branchable.com 2013-12-25 18:27:12 -04:00
Joey Hess
abbd43bccb devblog 2013-12-25 18:22:17 -04:00
Joey Hess
1dc930063a basic data types and serialization for external special remote protocol
This is mostly straightforward, but did turn out quite nicely stronly
typed, and with a quite nice automatic tokenization and parsing of received
messages.

Made a few minor changes to the protocol to clear up ambiguities and make
it easier to parse. Note particularly that setting remote configuration
is moved to a separate command, which allows a remote to set arbitrary data.
2013-12-25 17:54:57 -04:00
Greg Grossmeier
6ca5271430 Added myself to users. 2013-12-24 14:53:09 -08:00
Joey Hess
0222a7252c Merge branch 'master' of ssh://git-annex.branchable.com 2013-12-24 17:48:20 -04:00
Joey Hess
6ffcf25587 devblog 2013-12-24 17:46:53 -04:00
Joey Hess
bd106e22f1 clean up 2013-12-24 17:42:48 -04:00
http://joeyh.name/
6fc03e6954 Added a comment 2013-12-24 21:36:05 +00:00
Joey Hess
18084d997c Merge branch 'master' of ssh://git-annex.branchable.com 2013-12-24 17:05:37 -04:00
Joey Hess
8e58ff7f71 check that ~/Desktop/annex can be written to; fall back to ~/annex when not 2013-12-24 17:04:07 -04:00
http://joeyh.name/
88802be3fe Added a comment 2013-12-24 20:56:00 +00:00
http://joeyh.name/
188b96b68c Added a comment 2013-12-24 20:51:32 +00:00
Joey Hess
706c74aa98 Include git-receive-pack, git-upload-pack, and git wrappers in the Linux standalone build, and OSX app, so they will be available when it's added to PATH. 2013-12-24 16:28:10 -04:00
Joey Hess
b9d3cfa0c5 fix gconvdir 2013-12-24 16:28:03 -04:00
http://joeyh.name/
f71df7d23a Added a comment 2013-12-24 20:20:26 +00:00
Joey Hess
02df4f529b Fix bug in Linux standalone build's shimming that broke git-annex-shell. 2013-12-24 15:42:49 -04:00
Joey Hess
e199240ab8 remove unused imports 2013-12-24 15:18:15 -04:00
Joey Hess
7e311a00d0 Fix typo in test suite. 2013-12-24 14:02:02 -04:00
Joey Hess
728c00b0c2 Add tasty to build-depends, so that test suite builds again. (tasty was stuck in incoming.) 2013-12-24 13:58:50 -04:00
Joey Hess
ad55ac9ece close 2013-12-24 13:30:42 -04:00
Joey Hess
692aa01aa9 update for LinuxMkLibs 2013-12-24 13:25:40 -04:00
Joey Hess
103c7e8b9a resursively follow lib symlinks, just in case 2013-12-24 13:25:02 -04:00
Joey Hess
1618510707 Merge remote-tracking branch 'origin/master' 2013-12-24 13:14:44 -04:00
Joey Hess
5897fb4a86 convert hacky shell linux mklibs code to haskell ; fixing symlink bug
The shell code was nasty, and buggy. New haskell code is much nicer,
and it's easy to do complicated calculations to properly convert possibly
absolute symlinks between libraries into relative links using it.
2013-12-24 13:13:17 -04:00
http://id.clacke.se/
9d8f2afb03 removed 2013-12-24 12:27:52 +00:00
https://www.google.com/accounts/o8/id?id=AItOawlQOB33y4pNs2tjhTOMO-vNmFAPwEm02b4
f4da08d32b Added a comment: auto Transport Company auto Shipping transport Vehicle 2013-12-24 06:08:36 +00:00
https://launchpad.net/~psycojoker
01173d4e1a 2013-12-23 22:13:22 +00:00
Richard Hartmann
598f3ee0b9 doc/git-annex.mdwn: Forgot Oxford comma 2013-12-23 18:50:51 +01:00
Richard Hartmann
25a37b0e73 doc/git-annex.mdwn: Improve docs for annex.diskreserve 2013-12-23 18:49:54 +01:00
http://grossmeier.net/
329b86a4c5 Added a comment 2013-12-23 16:45:44 +00:00
http://grossmeier.net/
7233776f7b 2013-12-23 16:31:00 +00:00