much better command action handling for sync --content
This commit is contained in:
parent
cfa6865056
commit
73c420ffcf
5 changed files with 68 additions and 61 deletions
|
@ -29,6 +29,7 @@ import qualified Git.LsFiles as LsFiles
|
|||
import qualified Backend
|
||||
import Annex.Content
|
||||
import Annex.Wanted
|
||||
import RunCommand
|
||||
|
||||
import qualified Data.Set as S
|
||||
|
||||
|
@ -158,7 +159,7 @@ expensiveScan urlrenderer rs = unless onlyweb $ batch <~> do
|
|||
present <- liftAnnex $ inAnnex key
|
||||
liftAnnex $ handleDropsFrom locs syncrs
|
||||
"expensive scan found too many copies of object"
|
||||
present key (Just f) Nothing
|
||||
present key (Just f) Nothing callCommand
|
||||
liftAnnex $ do
|
||||
let slocs = S.fromList locs
|
||||
let use a = return $ mapMaybe (a key slocs) syncrs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue