git-annex/Remote
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
..
Directory more RawFilePath 2019-12-18 17:10:28 -04:00
External include all remotes back in 2019-12-02 12:26:33 -04:00
Helper wip separate RemoteConfig parsing 2020-01-13 12:39:21 -04:00
Rsync fix windows build 2020-01-01 14:27:03 -04:00
WebDAV more RawFilePath 2019-12-18 17:10:28 -04:00
Adb.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00
BitTorrent.hs more RawFilePath 2019-12-18 17:10:28 -04:00
Bup.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00
Ddar.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00
Directory.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00
External.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00
GCrypt.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00
Git.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00
GitLFS.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00
Glacier.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00
Hook.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00
List.hs include all remotes back in 2019-12-02 12:26:33 -04:00
P2P.hs add RemoteStateHandle 2019-10-14 13:51:42 -04:00
Rsync.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00
S3.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00
Tahoe.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00
Web.hs cache the serialization of a Key 2019-11-22 17:49:16 -04:00
WebDAV.hs be stricter about rejecting invalid configurations for remotes 2020-01-10 14:52:48 -04:00