Hi,
Thank you for your prompt reply.
The exact behavior (just tested on my own):
SVN 1.6:
switched file
- delete: works;
- status: reported correctly (D + S);
- commit: works (removes item from the branch URL, not from the parent directory URL);
switched directory
- delete: works;
- status: reported wrong if directly on the switched directory ("svn status switchedDir" reports as D only), but works fine if requested on parent dir ("svn status ." reports "switchedDir" as D + S);
- commit: works fine;
SVN 1.7:
switched file
- delete: works;
- status: loses S state, only D reported (both if "svn status" on file or on parent);
- commit: same as SVN 1.6 for file;
switched directory
- delete:not working (previously mentioned error);
I don't know how things work for SVN 1.8, since I do not test it until officially available.
At this point, I assume it would be safer to not allow delete on switched items (especially if the switched status is lost) since the user might not be aware that commits something to another repository location.
But, this will prevent a user from replacing the switched item (delete + add).
Best Regards,
Florin