git-annex/Remote/Helper
Joey Hess 7cef5e8f35
export tree: avoid confusing output about renaming files
When a file in the export is renamed, and the remote's renameExport
returned Nothing, renaming to the temp file would first say it was
renaming, and appear to succeed, but actually what it did was delete the
file. Then renaming from the temp file would not do anything, since the
temp file is not present on the remote. This appeared as if a file got
renamed to a temp file and left there.

Note that exporttree=yes importree=yes remotes have their usual
renameExport replaced with one that returns Nothing. (For reasons
explained in Remote.Helper.ExportImport.) So this happened
even with remotes that support renameExport.

Fix by letting renameExport = Nothing when it's not supported at all.
This avoids displaying the rename.

Sponsored-by: Graham Spencer on Patreon
2024-03-09 13:50:26 -04:00
..
Chunked filter out control characters in warning messages 2023-04-10 15:55:44 -04:00
AWS.hs correct obsolete comment 2023-01-31 14:42:26 -04:00
Chunked.hs automatically adjust stall detection period 2024-01-18 17:12:10 -04:00
Encryptable.hs more groundwork for StatelessOpenPGP 2024-01-12 13:11:36 -04:00
ExportImport.hs export tree: avoid confusing output about renaming files 2024-03-09 13:50:26 -04:00
Git.hs implement Unavilable for gcrypt 2023-08-16 15:54:54 -04:00
Hooks.hs avoid annexFileMode special case 2023-04-27 15:58:37 -04:00
Http.hs git-lfs gitlab interoperability fix 2021-11-10 13:51:11 -04:00
Messages.hs filter out control characters in all other Messages 2023-04-11 12:58:01 -04:00
P2P.hs add directional stalldetection and bwlimit configs 2024-01-19 15:27:53 -04:00
Path.hs implement Unavilable for borg bup ddar directory rsync 2023-08-16 15:48:09 -04:00
ReadOnly.hs export tree: avoid confusing output about renaming files 2024-03-09 13:50:26 -04:00
Special.hs add directional stalldetection and bwlimit configs 2024-01-19 15:27:53 -04:00
Ssh.hs filter out control characters in all other Messages 2023-04-11 12:58:01 -04:00
ThirdPartyPopulated.hs ImportableContentsChunkable 2021-10-08 13:15:22 -04:00