git-annex/Remote
Joey Hess cd1676d604
fix bug involving local git remote and out of date location log
get --from, move --from: When used with a local git remote, these used to
silently skip files that the location log thought were present on the
remote, when the remote actually no longer contained them. Since that
behavior could be surprising, now instead display a warning.

I got very confused when I encountered this behavior, since it was silently
skipping a file I needed that whereis said was on the remote.

get without --from already displayed a "unable to access these remotes"
message, which while a bit misleading in that the remote is likely
accessible, but just doesn't contain the file, at least indicated something
went wrong.

Having get --from display a warning makes it in line with get
w/o --from, so seems certianly ok. It might be there are situations where
move --from is used, on eg a whole directory, and the user only wants to
move whatever is present in the remote, and is perfectly ok with files
that are not present being skipped. So I'm less sure about the new warning
being ok there. OTOH, only local git remotes avoiding displaying a warning
in that case too, so this just brings them into line with other remotes.

(Also note that this makes it a little bit faster when dealing with a lot of
files, since it avoids a redundant stat of the file.)
2020-04-21 12:36:58 -04:00
..
Directory some easy createDirectoryUnder conversions 2020-03-05 15:20:10 -04:00
External add LISTCONFIGS to external special remote protocol 2020-01-17 16:07:17 -04:00
Helper fix builds build 2020-03-10 13:50:46 -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 adb: Better messages when the adb command is not installed 2020-04-02 10:48:28 -04:00
BitTorrent.hs fix encryption of content to gcrypt and git-lfs 2020-02-26 18:05:36 -04:00
Bup.hs fix all remaining -Wincomplete-uni-patterns warnings 2020-04-15 13:55:08 -04:00
Ddar.hs fix encryption of content to gcrypt and git-lfs 2020-02-26 18:05:36 -04:00
Directory.hs some easy createDirectoryUnder conversions 2020-03-05 15:20:10 -04:00
External.hs GETCONFIG name fix 2020-03-09 12:38:04 -04:00
GCrypt.hs Fix a potential failure to parse git config 2020-04-13 13:05:41 -04:00
Git.hs fix bug involving local git remote and out of date location log 2020-04-21 12:36:58 -04:00
GitLFS.hs git-annex config: guard against non-repo-global configs 2020-03-02 15:54:18 -04:00
Glacier.hs fix encryption of content to gcrypt and git-lfs 2020-02-26 18:05:36 -04:00
Hook.hs fix encryption of content to gcrypt and git-lfs 2020-02-26 18:05:36 -04:00
List.hs Merge branch 'v7' 2020-02-26 18:15:18 -04:00
P2P.hs fix encryption of content to gcrypt and git-lfs 2020-02-26 18:05:36 -04:00
Rsync.hs mostly finished with createDirectoryUnder conversion 2020-03-06 11:57:15 -04:00
S3.hs Merge branch 'v7' 2020-02-26 18:15:18 -04:00
Tahoe.hs fix encryption of content to gcrypt and git-lfs 2020-02-26 18:05:36 -04:00
Web.hs fix encryption of content to gcrypt and git-lfs 2020-02-26 18:05:36 -04:00
WebDAV.hs webdav: Made exporttree remotes faster by caching connection to the server 2020-03-20 12:48:43 -04:00