Commit code to SVN failing: "folder exists with this name"
Recently I had done a successful commit to my SVN repository. But now I made some changes in code and also add some files. Now I want to re-commit this new folder(same name with previous commit) to SVN.
I tried to that by first replace my folder with new folder in my checkout directory. Then I run
svn 开发者_开发技巧status
then svn add shardha/
.
It is showing some error that there are already folder exist with this name at SVN.
Why don't you just commit the changes? Why do you need to make a new folder? Is it that you are getting conflicts and don't know how to resolve them? Did you make sure to update before you started working? I don't think a lot of you needed to do was necessary.
In order to make changes to a working copy, you should:
- run svn update to make sure you are working against the HEAD, and that you're base revision matches that
- make you're changes locally
- run svn commit and work against the conflicts as they arise if necessary
The point with SVN is that it just tracks the differences in a filetree. That's why nothing is ever really deleted, and you can always revert back to a particular revision. Perhaps you are just not clear on the fundamentals/basics?
If I understand you correctly, in your working copy you have a folder named shardha (let's call it foo) and you:
- move foo to foo.bak
- make a new directory named foo
- then
svn add foo
(the new one) which fails
You need to:
svn move foo foo.bak
orsvn delete foo
- then svn add your new foo and commit
精彩评论