When I try to rename the file Class1.cs to class1.cs inside VS and then try to commit the project via ankhSVN I get two errors:
[...\Class1.cs] is already under version control.
The commit processing can't commit [...\Class1.cs], because it is not managed by Subversion. Maybe you should refresh the status after applying changes with another client?
I then deleted class1.cs, added a new class1.cs, tried to commit it but received the same errors. How can I get around this problem so I can change the case and still be able to commit? I know that Windows is case insesitive but shouldn't there still be a (easy) way to do this?
After playing a little more with ankhSVN and then trying to commit the file with its original name (so i at least have it back in version control) I got:
An internal error occured. Commit failed (details follow): Cannot commit: '[...]\Class1.cs' because it was moved to '[...]\class1.cs' which is not part of the commit; both sides of the move must be committed together
SharpSvn.SvnIllegalTargetException...
I'm using
You can do this with in Visual Studio + ankhSVN.
Copy/Paste the file you want to rename and paste it in the same folder
Rename the file from "Copy Of xxxx" to the desired new name.
Delete the old file
right click the folder both files were in and perform the svn commit operation on the entire folder.
Thats it!
I fixed it with the following steps. I still hope there is an easier way.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With