copy --from --to location tracking update

copy: When --from and --to are combined and the content is already present
on the destination remote, update location tracking as necessary.

Sponsored-by: Dartmouth College's DANDI project
This commit is contained in:
Joey Hess 2023-03-13 14:50:28 -04:00
parent 38e9ea8497
commit f1b678face
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 19 additions and 0 deletions

View file

@ -399,6 +399,9 @@ fromToPerform src dest removewhen key afile = do
Right True -> do
showAction $ "from " ++ Remote.name src
showAction $ "to " ++ Remote.name dest
-- The log may not indicate dest's copy
-- yet, so make sure it does.
logChange key (Remote.uuid dest) InfoPresent
-- Drop from src, checking copies including
-- the one already in dest.
dropfromsrc id