Comment 0 for bug 53340

Revision history for this message
David Allouche (ddaa) wrote :

In some situations (bzr bugs, sftp server bugs, manual fiddling, connection failure) the sftp server can end up with a branch directory (~user/product/branch) that is not a proper bzr branch branch.

bzr cannot push on this location because it's not a proper branch, and it cannot be deleted because of bug 34540.

Currently, recovering from this situation requires manual surgery using a sftp client. There should be a way to tell bzr "push on this sftp location and delete any pre-existing contents of the directory". This would also be useful in access control scenarios. The deletion of existing files can be racy (ls then rm), and the target location may not be deletable.