git-annex/Remote
Joey Hess 55809081d0
update for ExportTree
Use ExportTree rather than ExportedLocation for retrieveKeyFile and
checkPresent. When another remote exported the content, ExportTree will
be populated, but ExportedLocation will not be.

It would be possible to implement storeKey to exports as well, but it
risks performing a lot of unncessary work when another repository
already stored the key on the export and the local repository doesn't
know about it.

The only way to avoid that work would be for storeKey to use checkPresentExport
before uploading. But, the other repository could have changed the
exported tree as well, so that can't be trusted, and if it were used in
storeKey, could result in bad information getting into the location log.

This commit was sponsored by Bruno BEAUFILS on Patreon.
2017-09-18 14:45:00 -04:00
..
Directory remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
External add ExportTree table to export db 2017-09-18 13:59:59 -04:00
Helper update for ExportTree 2017-09-18 14:45:00 -04:00
Rsync adeiu, MissingH 2017-05-16 01:03:52 -04:00
WebDAV add ExportTree table to export db 2017-09-18 13:59:59 -04:00
BitTorrent.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Bup.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Ddar.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Directory.hs add ExportTree table to export db 2017-09-18 13:59:59 -04:00
External.hs split out Types.Export 2017-09-15 16:46:03 -04:00
GCrypt.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Git.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Glacier.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Hook.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
List.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
P2P.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Rsync.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
S3.hs add ExportTree table to export db 2017-09-18 13:59:59 -04:00
Tahoe.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Web.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
WebDAV.hs add ExportTree table to export db 2017-09-18 13:59:59 -04:00