chiark / gitweb /
catacomb-import-update: Handle deletion
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 31 Dec 2019 13:13:25 +0000 (13:13 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 1 Jan 2020 23:48:14 +0000 (23:48 +0000)
commit19777e64f1b65b077dad9dcdf3f181834f45d20c
tree221a6aaf7538eb9ee6bfbcabc0f78b66e3ef915a
parentcbaa8fdc20ea6ce2ca254b1f38b80ccff1d89c66
catacomb-import-update: Handle deletion

If files are removed from the list to be processed, they should be
removed from the import directory, not left lying around stale.

(Files that disappear from Catacomb upstream would always produce an
error, and will still do so.)

This means we key off %changed.  If there is no entry in
%DONOR_REV_MAP then it means the file is being deleted; if the entry
is undef ie means the file is being added.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
catacomb-import-update