开发者

Tortoise SVN: deleted folders reappear after being removed with the Repo Browser

开发者 https://www.devze.com 2023-03-20 04:32 出处:网络
Windows XP SP3; TortoiseSVN 1开发者_如何学C.6.16, Build 21511 - 32 Bit, which is the current version at the moment.

Windows XP SP3; TortoiseSVN 1开发者_如何学C.6.16, Build 21511 - 32 Bit, which is the current version at the moment.

We're using Eclipse Helios for some Android development. When one of the projects was first checked in using TortoiseSVN, the bin and gen folders were included. I'm trying to delete them from SVN.

I went to the Repo Browser and deleted the bin and gen folders from the project. The Repo Browser log shows two "Deleted" entries for revision 40583. I then went to my working copy and did an SVN Update. It deleted the folders, as expected. The File Explorer shows a green icon for the project.

Next, I ran Eclipse and did Project/Clean. The bin and gen folders were created. The gen folder shows the purple question mark icon as an unversioned folder, as expected. The bin folder, however shows a red exclamation point icon, and it and all of its child folders all contain a .svn version control subfolder. If I exit Eclipse and do a TortoiseSVN Cleanup, the bin folder temporarily shows a green icon and then immediately switches back to the red exclamation point icon.

What's going on?


You should install a SVN client in eclipse, and don't use TortoiseSVN altogether on the same directory as eclipse is working on. This is the root cause of your problem, and it will come again and again.

So the proper use is:

  1. Install a SVN client like subversive or subclipse inside eclipse.
  2. Depending on the client you choose, checkout the project from your subversion repository using the menu entries of the client you have installed.
  3. After having checked-out the project, check the properties of the root folder of the project. They should define that the bin folder (or target if you are using Maven) should be ignored.
  4. If you have to add that property, ensure to commit it, so others will not have the same problem.
0

精彩评论

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