views:

41

answers:

3

I have been using TortoiseSVN for a 2-3 months to control my subversion. Today when I tried to commit files to a repository it showed me a strange message like this:

alt text

When I went to the menu and selected Cleanup command it showed me this new message box:

alt text


I have tried to release lock it says that there is nothing to unlock.
What happened with my subversion repository? Has anybody met with this problem before? How to solve it?
Besides, I had used subversion in a netbeans also to commit files without any problems. But today in a netbeans also it shows strange errors and not submitting my files to the repository.
A lot of thanks.

+2  A: 

Personally in this situation I tend to backup that folders files, delete the whole folder and check it out again, cleanup, then paste the files back in. Not ideal, and far from best practise I would imagine, but it works ;)

DavidYell
@David. All right, but could you explain it in a step-by-step form, PLEASE. Because I don't want to loose my files that are in a repository also. And I am a dummy user in using subversion.
Bakhtiyor
Well, copy the files in that folder to another folder. You can ignore the `.svn` folder. Then you want to delete the folder. After this, go to the root folder of the project, and do a `svn update` this should restore the folder with what's in the repo. Then you can paste your changed files back in. Then I would try an `svn commit`
DavidYell
+1  A: 

I've had similar problems when moving folders around.

Try deleting the .svn or _svn folders and doing an update.

Try deleting or renaming the entire folder and do an update, then manually re-merge your changes into it.

Of course, keep a copy of your changes so you can re-merge them.

I've heard SVN is working on getting rid of all the .svn folders and going to a single metadata file, which would probably keep this kind of problem from happening.

Lone Coder
Yup - one must never, ever copy or move folders using the Windows functions inside a working copy: You need to export/import or rename them within SVN. I learned that the hard way :)
Pekka
@Pekka. Yeah. I think this headache started once I deleted a folder that I didn't want to commit into a repository. That was a new folder which didn't exist in a repository though.
Bakhtiyor
+1  A: 

Are you sure your file is not locked by another process ? I see you are using DropBox, maybe it is trying to synchronize it meanwhile ?

hoang
@hoang. You're right that they are in a Dropbox folder, but I have tried to close Dropbox and see it. But still the same error message.
Bakhtiyor