Commit graph

27010 commits

Author SHA1 Message Date
dxld
cdbe776d0f 2020-01-21 11:53:26 +00:00
Joey Hess
5c6bf1be97
--whatelse is a better name than --describe-other-params
The use case is basically the user having forgotten, so --help would be
best, but it would be quite hard to include this in --help, since it may
even have to spin up an external special remote program.

I also considered --umm but typoed it the first time I tried it as
--uum, and while memorable, it's too cutesy. --whatelse is good because
it explicitly asks, what other params, besides the ones I've given?
2020-01-20 17:04:45 -04:00
Joey Hess
55f596e9b4
Merge branch 'master' of ssh://git-annex.branchable.com 2020-01-20 16:59:57 -04:00
Joey Hess
2be4122bfc
include passthrough params in --describe-other-params 2020-01-20 16:53:27 -04:00
Joey Hess
aa949bbb7d
initremote --describe-other-params
Does not yet include descriptions from external special remote programs.
2020-01-20 16:05:51 -04:00
Joey Hess
2f8822307f
Merge branch 'remoteconfig' 2020-01-20 15:21:05 -04:00
bastibe
15bc8741c2 2020-01-20 14:57:04 +00:00
timothe
b4c135619d 2020-01-17 22:47:50 +00:00
Joey Hess
0b6fb506eb
Merge branch 'master' of ssh://git-annex.branchable.com 2020-01-17 17:30:09 -04:00
Joey Hess
b1c224dd48
done 2020-01-17 17:18:44 -04:00
Joey Hess
99cb3e75f1
add LISTCONFIGS to external special remote protocol
Special remote programs that use GETCONFIG/SETCONFIG are recommended
to implement it.

The description is not yet used, but will be useful later when adding a way
to make initremote list all accepted configs.

configParser now takes a RemoteConfig parameter. Normally, that's not
needed, because configParser returns a parter, it does not parse it
itself. But, it's needed to look at externaltype and work out what
external remote program to run for LISTCONFIGS.

Note that, while externalUUID is changed to a Maybe UUID, checkExportSupported
used to use NoUUID. The code that now checks for Nothing used to behave
in some undefined way if the external program made requests that
triggered it.

Also, note that in externalSetup, once it generates external,
it parses the RemoteConfig strictly. That generates a
ParsedRemoteConfig, which is thrown away. The reason it's ok to throw
that away, is that, if the strict parse succeeded, the result must be
the same as the earlier, lenient parse.

initremote of an external special remote now runs the program three
times. First for LISTCONFIGS, then EXPORTSUPPORTED, and again
LISTCONFIGS+INITREMOTE. It would not be hard to eliminate at least
one of those, and it should be possible to only run the program once.
2020-01-17 16:07:17 -04:00
yarikoptic
c1e2389e8e moving under datalad project, since I do not see explicit repronim-specific use case addressed 2020-01-17 17:32:08 +00:00
hans
6eea31acb8 Added a comment 2020-01-16 14:22:07 +00:00
Joey Hess
8017f41476
Merge branch 'master' of ssh://git-annex.branchable.com 2020-01-15 14:16:27 -04:00
Joey Hess
96d434af06
devblog 2020-01-15 14:14:46 -04:00
Joey Hess
987076690c
started on --list-params-for 2020-01-15 14:09:30 -04:00
Joey Hess
ba518c625c
comment 2020-01-15 14:08:58 -04:00
Ilya_Shlyakhter
f4b5128b69 removed 2020-01-15 17:28:43 +00:00
peterjhons1212@37e49dc920410e3ff2592014a4d480a71e6d8e60
9c22d4fcb4 2020-01-15 09:35:24 +00:00
Ilya_Shlyakhter
49ad9b06d2 removed 2020-01-14 17:01:33 +00:00
Ilya_Shlyakhter
ddd9eb1157 removed 2020-01-14 16:58:20 +00:00
Ilya_Shlyakhter
33236be1d7 removed 2020-01-14 16:56:23 +00:00
asgardroper9999@1aaf36a247c0e6dcf6a46d246f232024c1fa13fc
25d0c3632d 2020-01-14 11:04:01 +00:00
drakeorba@50df1b43541b82299ffda86e45d9d92b4d6dff51
861872cb12 2020-01-14 10:39:24 +00:00
macchristmas001@3f3c07e6de414d3d408af6907ac2fd329d697460
56b7af71d1 2020-01-14 09:35:01 +00:00
kyle
76aa98ce83 Added a comment: re: what am I doing wrong? 2020-01-14 03:19:22 +00:00
yarikoptic
0fa983803f Added a comment: what am I doing wrong? 2020-01-13 20:05:40 +00:00
yarikoptic
803722bb2d Added a comment: preferred way to automate population of the cache upon get 2020-01-13 19:01:11 +00:00
Joey Hess
31a03aa6af
Revert spam
This reverts commit c4a33d15b5.
2020-01-13 13:22:43 -04:00
Joey Hess
2ae241cddb
Revert spam
This reverts commit a1261c5f36.
2020-01-13 13:22:31 -04:00
Joey Hess
9cd8922fe5
Revert spam
This reverts commit 1c5edbd823.
2020-01-13 13:22:02 -04:00
Joey Hess
ee393c49e4
Revert spam
This reverts commit a746c210cc.
2020-01-13 13:21:41 -04:00
Joey Hess
37c9958ee8
Revert spam
This reverts commit fa7c78c31d.
2020-01-13 13:21:24 -04:00
Joey Hess
5c31e5ac72
Merge branch 'master' of ssh://git-annex.branchable.com 2020-01-13 13:17:17 -04:00
Joey Hess
4a01cd74b0
devblog 2020-01-13 13:16:48 -04:00
peterjhons1212@37e49dc920410e3ff2592014a4d480a71e6d8e60
fa7c78c31d 2020-01-13 12:14:38 +00:00
sr0665047@eb63f1dba8c3fd8df62fe41387eb4deeb0f8dd89
a746c210cc 2020-01-13 09:26:09 +00:00
diana.roger100@4fe4714d78b74795de56915fc7fb924f444963fa
1c5edbd823 2020-01-13 06:39:11 +00:00
diana.roger100@4fe4714d78b74795de56915fc7fb924f444963fa
a1261c5f36 2020-01-13 06:29:14 +00:00
diana.roger100@4fe4714d78b74795de56915fc7fb924f444963fa
c4a33d15b5 2020-01-13 06:28:07 +00:00
AdamSpiers
5aef27d825 add missing backtick 2020-01-13 00:25:27 +00:00
Joey Hess
4a135934ff
Merge branch 'master' of ssh://git-annex.branchable.com 2020-01-10 14:53:00 -04:00
Joey Hess
71ecfbfccf
be stricter about rejecting invalid configurations for remotes
This is a first step toward that goal, using the ProposedAccepted type
in RemoteConfig lets initremote/enableremote reject bad parameters that
were passed in a remote's configuration, while avoiding enableremote
rejecting bad parameters that have already been stored in remote.log

This does not eliminate every place where a remote config is parsed and a
default value is used if the parse false. But, I did fix several
things that expected foo=yes/no and so confusingly accepted foo=true but
treated it like foo=no. There are still some fields that are parsed with
yesNo but not not checked when initializing a remote, and there are other
fields that are parsed in other ways and not checked when initializing a
remote.

This also lays groundwork for rejecting unknown/typoed config keys.
2020-01-10 14:52:48 -04:00
satya.ortiz-gagne@a4c92de91eb4fd5ae8fc9893bb4fd674a19f2e59
f90a35965f Added a comment: using hardlinks 2020-01-10 16:11:47 +00:00
https://christian.amsuess.com/chrysn
0207c44201 Added a comment: Summary; Application: shared thumbnails 2020-01-10 08:41:20 +00:00
Joey Hess
f735efc22c
comment 2020-01-09 16:54:11 -04:00
https://christian.amsuess.com/chrysn
6b25d93a4f notes on my recovery from a bad merge 2020-01-09 13:26:09 +00:00
Joey Hess
e07a2d81d1
comment 2020-01-08 14:26:48 -04:00
Joey Hess
563fc06375
response 2020-01-08 14:25:26 -04:00
Joey Hess
c4b0be0282
Merge branch 'master' of ssh://git-annex.branchable.com 2020-01-08 14:24:10 -04:00