leave export logged as incomplete if initial renames fail
This way, the temp files that might be left due to failure will be cleaned up next time. Also, nub the list of incomplete exports to avoid repeatedly adding the same tree to it when running export repeatedly when it's failing. This commit was supported by the NSF-funded DataLad project.
This commit is contained in:
parent
4d3a464e83
commit
8de516ad2c
2 changed files with 8 additions and 5 deletions
|
@ -84,7 +84,7 @@ recordExportBeginning remoteuuid newtree = do
|
|||
. M.lookup u . simpleMap
|
||||
. parseLogNew parseExportLog
|
||||
<$> Annex.Branch.get exportLog
|
||||
let new = old { incompleteExportedTreeish = newtree:incompleteExportedTreeish old }
|
||||
let new = old { incompleteExportedTreeish = nub (newtree:incompleteExportedTreeish old) }
|
||||
Annex.Branch.change exportLog $
|
||||
showLogNew formatExportLog
|
||||
. changeLog c u (ExportLog new remoteuuid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue