Commit graph

36107 commits

Author SHA1 Message Date
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
Joey Hess
963239da5c
separate RemoteConfig parsing basically working
Many special remotes are not updated yet and are commented out.
2020-01-14 12:35:08 -04: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
Joey Hess
71f78fe45d
wip separate RemoteConfig parsing
Remote now contains a ParsedRemoteConfig. The parsing happens when the
Remote is constructed, rather than when individual configs are used.

This is more efficient, and it lets initremote/enableremote
reject configs that have unknown fields or unparsable values.

It also allows for improved type safety, as shown in
Remote.Helper.Encryptable where things that used to match on string
configs now match on data types.

This is a work in progress, it does not build yet.

The main risk in this conversion is forgetting to add a field to
RemoteConfigParser. That will prevent using that field with
initremote/enableremote, and will prevent remotes that already are set
up from seeing that configuration. So will need to check carefully that
every field that getRemoteConfigValue is called on has been added to
RemoteConfigParser.

(One such case I need to remember is that credPairRemoteField needs to be
included in the RemoteConfigParser.)
2020-01-13 12:39:21 -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
Joey Hess
ea3f206fd1
2020 2020-01-10 10:47:59 -04: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
Ilya_Shlyakhter
fdaa4e841a Added a comment: git-annex in docker on Windows 2020-01-08 16:16:32 +00:00
anarcat
6a38d94ceb fix a transcription error - to disable a remote, we set ignore to true, not false! 2020-01-08 15:30:51 +00:00
michael.hanke@c60e12358aa3fc6060531bdead1f530ac4d582ec
ac8139edc0 Added a comment: WSL 1/2 experience 2020-01-08 15:20:07 +00:00
fasthans@87884c78197fe1a25ac25ae7fa1d930c147e9592
ef338c1de1 Added a comment 2020-01-08 12:08:23 +00:00
undral
0585d12ca4 removed 2020-01-08 00:17:47 +00:00
undral
9fe3f9e08f Added a comment: hi 2020-01-08 00:17:14 +00:00
Joey Hess
1ccd6a4600
generalize docs so they will also work when git uses SHA256 2020-01-07 16:10:57 -04:00
Joey Hess
69b85812c8
response 2020-01-07 15:33:29 -04:00
Joey Hess
62319ca99d
response 2020-01-07 15:28:20 -04:00
fasthans@87884c78197fe1a25ac25ae7fa1d930c147e9592
0abb3122b9 Added a comment: prior research 2020-01-07 19:07:17 +00:00
fasthans@87884c78197fe1a25ac25ae7fa1d930c147e9592
979df50c2d 2020-01-07 19:04:32 +00:00
Joey Hess
8aa6f60fc3
plan 2020-01-07 14:27:53 -04:00
Joey Hess
8da04f72bf
Merge branch 'master' of ssh://git-annex.branchable.com 2020-01-07 13:26:14 -04:00
Joey Hess
6db4aee7df
use --no-abbrev instead of --abbrev=40
This avoids hardcoding the sha size, so when git uses sha256, it will
output the full sha256 and not a truncation to 40 characters.

I reviewed git's history, and while there have been some
bugs with commands not supporting --no-abbrev (eg git diff --no-index
--no-abbrev was broken in git 2.1), none of the commands git-annex
uses will be impacted by those old bugs.
2020-01-07 12:29:37 -04:00
Joey Hess
5e4deb3620
support sha256 git repos
Git will eventually switch to sha2 and there will not be one single
shaSize anymore, but two (40 and 64).

Changed all parsers for git plumbing output to support both sizes of
shas.

One potential problem this does not deal with is, if somewhere in
git-annex it reads two shas from different sources, and compares them
to see if they're the same sha, it would fail if they're sha1 and sha256
of the same value. I don't know if that will really be a concern.
2020-01-07 12:22:19 -04:00
spwhitton
6a47c66388 Added a comment 2020-01-07 12:29:49 +00:00