Let's say the following two directories are in the repository:
currentproduction
development
I want too:
- Rename
currentproductionfor example. archivedproduction. - Copy revision 1234 from
developmentas (new) currentproduction.
When i do
svn ren currentproduction archivedproduction
svn copy -r 1234 development currentproduction
Subversion is trying to copy developmentunder (to) currentproduction(which is already planned for removal):
A currentproduction\development\file1.txt
A currentproduction\development\file2.txt
Updated to revision 1234.
svn: Can't add 'currentproduction\development' to a parent directory scheduled for deletion
I assume this is because the directory is still in the working copy until commit. I could do with intermediate commit:
svn ren currentproduction archivedproduction
svn commit
svn copy -r 1234 development currentproduction
but it’s not very nice ... There is no way to tell Subversion I want to replace the directory with another?
source
share