upload plugin should silently ignore deleted files on remote server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Breezy |
Triaged
|
Wishlist
|
Unassigned | ||
bzr Upload plugin |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Currently if a file is deleted on the remote FTP server AND removed from the local bzr branch (with bzr remove) then changes are uploaded, the upload plugin exits with an error message (an ftp error) saying it could not delete the remote file as it no longer exists.
As a real world example, someone (not using bzr) deleted some files from the ftp server and then notified me that these needed to be deleted, so I removed them from the branch with bzr remove. In this instance, the upload plugin should just ignore this error and continue with the upload. The solution to this is doing a --full upload from scratch.
If the file is removed from bzr branch and from the remote server, it should be ok to ignore and continue?
Related branches
Changed in bzr-upload: | |
importance: | Undecided → High |
status: | New → Confirmed |
tags: | added: upload |
Changed in brz: | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
milestone: | none → 3.0.0 |
Changed in brz: | |
milestone: | 3.0.0 → 3.1.0 |
I see your point.
But the plugin relies on the assumption that the .bzr-upload.revid file on the remote site identify a snapshot: a set of files and directories for which the content is precisely known.
Whatever modification is done on the remote site breacks that assumption.
In that particular case, it will be innocuous to ignore the errors when deleting a file or a directory, since what the plugin want to do is... already done.
I'm a bit hesitant to accept that exception though as it can give a false sense of security regarding remote modifications.
May be a --force option may be added to address your case and some minor other ones.
This needs discussion.