开发者

TortiseSVN - commit Item failed error

开发者 https://www.devze.com 2023-01-21 04:56 出处:网络
I use tortise svn in VS2010.When I go to commit my changes at the end of the day, I get the following error.

I use tortise svn in VS2010. When I go to commit my changes at the end of the day, I get the following error.

Commit item 'folder / filename' has copy flag but an invalid revision.

What does that mean and how do I 开发者_JAVA百科resolve it? I Googled for it but really only saw a transcript of a rather esoteric discussion for a Java-related issue.

EDIT - 10/25/2010

Nothing? Really?


I agree with Pekka's comment. Right click on the project folder -> TortoiseSVN -> Check for modifications. Take note of the files you changed.

Create a new folder - and checkout the repository to the new folder. Move the files that changed back into the new folder, replacing any existing ones. Try your commit again.

You may try doing this with Windows Explorer instead of Visual Studio.


  1. have you renamed that folder[say, folder1]?
  2. If not then, "export" the content of that folder to somewhere else[say, folder2].
  3. go back to parent of folder1 and delete then update folder1.
  4. replace all the files[*not folder*s] in folder1 with the equivalent files from folder1
  5. now commit folder1 independently after stealing any lock if exists.


What happens if you try to get the latest revision (update before committing, but after you back up your code ;)?

It sounds like there is potentially something that is in conflict in a bad way - you may need to back up your files, update or check out a new working copy, and then replace checked out files with your old ones.


check out a clean copy. put in the changes you previously made. commit. do that, and try to forget your problems. it should work.

0

精彩评论

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