Commit graph

16474 commits

Author SHA1 Message Date
Joey Hess
0c972961bb update 2013-12-27 12:04:51 -04:00
Joey Hess
5d8ff64dc1 make --debug show transcript of special remote protocol messages 2013-12-27 03:10:00 -04:00
Joey Hess
526a7bb2b4 improve comments 2013-12-27 02:56:52 -04:00
Joey Hess
3289155e28 don't send PREPARE before INITREMOTE
That complicated special remote programs, because they had to avoid making
PREPARE fail if some configuration is missing, because the remote might not
be initialized yet. Instead, complicate git-annex slightly by only sending
PREPARE immediately before some other request other than INITREMOTE (or
PREPARE of course).
2013-12-27 02:49:10 -04:00
Joey Hess
5b7c38c90a improve code, seems to work well now 2013-12-27 02:49:00 -04:00
Joey Hess
5d00fa523c fix bug (no type safe protocol stuff here, alas..) 2013-12-27 02:12:33 -04:00
Joey Hess
6d504b57e7 make some requests optional, simplify and future-proof protocol more 2013-12-27 02:11:06 -04:00
Joey Hess
372764ec76 Merge branch 'master' of ssh://git-annex.branchable.com 2013-12-27 00:34:23 -04:00
Joey Hess
01bd650e2d refreshed android patches 2013-12-27 00:32:29 -04:00
http://id.clacke.se/
ea09aa5f23 Added a comment: dup 2013-12-27 04:18:19 +00:00
Joey Hess
6c3e11abaf avoid another encoding crash 2013-12-27 00:10:04 -04:00
Joey Hess
63fab93755 -Wall clean 2013-12-27 00:05:15 -04:00
https://www.google.com/accounts/o8/id?id=AItOawm5WyknJirJJridJjiPNgrlYxGG9xrZBvA
81e828558b 2013-12-27 03:54:47 +00:00
https://openid.stackexchange.com/user/e65e6d0e-58ba-41de-84cc-1f2ba54cf574
dfa850c345 Added a comment: Thanks! 2013-12-27 01:37:36 +00:00
https://www.google.com/accounts/o8/id?id=AItOawknOATcOkmzX4jKuET5Z2RsaFUNnLKnQsU
354be3ddb5 2013-12-27 01:14:29 +00:00
Greg Grossmeier
6f0feb94b4 Added some more details to log 2013-12-26 16:45:25 -08:00
Greg Grossmeier
085c9783f5 bug report, real but also testing via git checkout not web interface 2013-12-26 16:37:54 -08:00
http://joeyh.name/
a39ff94188 Added a comment 2013-12-26 23:06:34 +00:00
Joey Hess
581b53a4f4 update 2013-12-26 18:46:23 -04:00
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