开发者

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:

  1. run svn update to make sure you are working against the HEAD, and that you're base revision matches that
  2. make you're changes locally
  3. 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:

  1. move foo to foo.bak
  2. make a new directory named foo
  3. then svn add foo (the new one) which fails

You need to:

  1. svn move foo foo.bak or svn delete foo
  2. then svn add your new foo and commit
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜