svn starts the project and reports an error, the project is locked



Problem Description

When using development tools to develop projects (such as Eclipse), in the middle of the project, sometimes Eclipse will suddenly get stuck and then automatically close, or when we svn submit the project, due to the vpn problem, the svn submission of the project fails, etc., will An exception occurred:

org.apache.subversion.javahl.ClientException: Attempted to lock an already-locked dir 
//SVN 客户端异常:试图锁定一个已经锁定的目录

svn

The first step for SVN to submit code is to lock the dir where you want to submit the code.

Only then check the repository code version...commit....

Other problem descriptions:

If your environment is not connected to a valid SVN repository, it will be stuck here when submitting, and there will be a Progress that keeps running but can't finish running. In this case, I use the resource manager to force the process to close. , so when you commit again today, it will "the dir you Attempted to lock has been already-locked".

problem solved

(1) Eclipse SVN plug-in processing

When using the SVN plugin, select the smallest package that can contain all the code to be submitted, right-click and select Team > Refresh/Cleanup, and then submit the operation. ( I just solved the problem using this method )

svn eclipse


(2) SVN client processing

(1) If you have installed the SVN client (just that little turtle), it does not mean that you need to operate through the client, but only after installing the client, right-click to have the SVN submenu to open the corresponding folder in the workspace, right-click TortoiseSVN > clean up... , that's it.

svn

(2) If you are a geek, you can also use the svn command: svn cleanup ... (operation target directory path)

(3) Delete the lock file

Go directly to the .svn directory in the above folder and delete the lock file.



Content transferred from: Zhong Shuimu

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324608929&siteId=291194637
Recommended