git-annex/Remote
Joey Hess e16b069331
use total size from DATA
Noticed that getting a key whose size is not known resulted in a
progress display that didn't include the percent complete.

Fixed for P2P by making the size sent with DATA be used to update the
meter's total size.

In order for rateLimitMeterUpdate to also learn the total size,
had to make it be passed the Meter, and some other reorg in
Utility.Metered was also done so that --json-progress can construct a
Meter to pass to rateLimitMeterUpdate.

When the fallback rsync is done, the progress display still doesn't
include the percent complete. Only way to fix that seems to be to let rsync
display its output again, but that would conflict with git-annex's
own progress meter, which is also being displayed.

This commit was sponsored by Henrik Riomar on Patreon.
2018-03-12 21:46:58 -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 use total size from DATA 2018-03-12 21:46:58 -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 hide rsync progress output when metered but not in other uses of rsync 2018-03-12 18:36:07 -04:00
Git.hs fix nested progress meters when using git-annex-shell fallback 2018-03-12 19:20: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 fix nested progress meters when using git-annex-shell fallback 2018-03-12 19:20:10 -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