Why do I keep getting 'SVN: Working Copy XXXX locked; try performing 'cleanup'?

后端 未结 11 1994
滥情空心
滥情空心 2020-12-25 10:25

If you have worked with SVN tools in Eclipse (Subversion, subversive) before, then you are likely familiar with the \'working copy \'XXX\' locked...\" error.

I found

相关标签:
11条回答
  • 2020-12-25 10:58

    I had the same problem using the com.xxx.service.model package.

    To fix it, I first made a backup of the code changes in the model package. Then deleted model package and synchronized with the repository. It will show incoming the entire folder/package. Then updated my code.

    Finally, paste the old code commit to the SVN Repository. It works fine.

    0 讨论(0)
  • 2020-12-25 10:59
    1. Select the project
    2. Right click on the selected Project
    3. Team -> Cleanup

    Problem Solved.

    Note: The Above steps will work only Eclipse(Indigo package)

    0 讨论(0)
  • 2020-12-25 11:01

    I've had a lot of issues with SVN before and one thing that has definitely caused me problems is modifying files outside of Eclipse or manually deleting folders (which contains the .svn folders), that has probably given me the most trouble.

    edit You should also be careful not to interrupt SVN operations, though sometimes a bug may occur and this could cause the .lock file to not be removed, and hence your error.

    0 讨论(0)
  • 2020-12-25 11:03

    Make sure you exactly cleanup what the console says. For example if a subfolder (a package) is locked:

       svn: E155004: Commit failed (details follow):
      svn: E155004: Working copy 'C:\Users\laura\workspace\tparser\src\de\test\order' locked
      svn: E155004: 'C:\Users\laura\workspace\tparser\src\de\test\order' is already locked.
    

    cleanup C:/Users/liparulol/workspace/tparser/src/de/mc/etn/parsers/order

    Then you need to cleanup the specified folder and not the whole project. If you are in eclipse right click on the package, not on the project folder and execute the clean up.

    0 讨论(0)
  • 2020-12-25 11:03

    This type of problem can happen when you delete/move files around - in essence making changes to your directory structure. Subversion only checks for changes made in files already added to subversion, not changes made to the directory structure. Instead of using your OS's copy etc commands rather use svn copy etc. Please see http://svnbook.red-bean.com/en/1.7/svn.tour.cycle.html

    Further, upon committing changes svn first stores a "summary" of changes in a todo list. Upon performing the svn operations in this todo list it locks the file to prevent other changes while these svn actions are performed. If the svn action is interrupted midway, say by a crash, the file will remain locked until svn could complete the actions in the todo list. This can be "reactivated" by using the svn cleanup command. Please see http://svnbook.red-bean.com/en/1.7/svn.tour.cleanup.html

    0 讨论(0)
提交回复
热议问题