git-annex/Remote
Joey Hess c81768d425
version the P2P protocol
Unfortunately ReceiveMessage didn't handle unknown messages the way it
was documented to; client sending VERSION would cause the server to
return an ERROR and hang up. Fixed that, but old releases of git-annex
use the P2P protocol for tor and will still have that behavior.

So, version is not negotiated for Remote.P2P connections, only for
Remote.Git connections, which will support VERSION from their first
release. There will need to be a later flag day to change Remote.P2P;
left a commented out line that is the only thing that will need to be
changed then.

Version 1 of the P2P protocol is not implemented yet, but updated
the docs for the DATA change that will be allowed by that version.

This commit was sponsored by Jeff Goeke-Smith on Patreon.
2018-03-12 14:36:35 -04:00
..
Directory remove 163 lines of code without changing anything except imports 2016-01-20 16:36:33 -04:00
External Added EXTENSIONS to external special remote protocol. 2018-02-07 15:02:12 -04:00
Helper version the P2P protocol 2018-03-12 14:36:35 -04:00
Rsync Support exporttree=yes for rsync special remotes. 2018-02-28 13:36:20 -04:00
WebDAV webdav: Avoid unncessisarily creating the collection at the top of the repo 2017-10-11 11:10:33 -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 Fix directory special remote's cleanup of empty export directories. 2017-11-08 14:38:24 -04:00
External.hs Added EXTENSIONS to external special remote protocol. 2018-02-07 15:02:12 -04:00
GCrypt.hs Improve startup time for commands that do not operate on remotes 2018-01-09 16:22:07 -04:00
Git.hs refactoring 2018-03-09 13:48:10 -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 version the P2P protocol 2018-03-12 14:36:35 -04:00
Rsync.hs Support exporttree=yes for rsync special remotes. 2018-02-28 13:36:20 -04:00
S3.hs fix version number 2017-10-11 11:43:03 -04:00
Tahoe.hs prevent exporttree=yes on remotes that don't support exports 2017-09-07 13:48:44 -04:00
Web.hs avoid warning when youtube-dl is not installed 2017-11-30 13:43:55 -04:00
WebDAV.hs avoid build warning with old version of http 2017-11-21 12:45:49 -04:00