SVN Error Commit failed, or Working Copy locked, or is already locked

Created: March 30, 2021 | Updated: August 12, 2021

I appear to have a lock on my SVN files. Or, when I try to commit that file I get an error - Commit failed - Previous operation has not finished; run 'cleanup' if it was interrupted.

Starting in Version: 18.0
Up to Version: Current

Solution Details

The error message indicates that a SVN process might already be accessing the folder specified in the path.
 
The .svn locking information may have become corrupt and performing an svn cleanup on the local working copy may resolve this issue. Installing TortoiseSVN and restarting enables a cleanup option in the right-click menu of the local working copy (the parent folder that contains the .svn folder), after the cleanup command is run, the commit may go through successfully.
 
It is also possible to run "
C:\Program Files\Altium\[version]\Subversion Client\SVN cleanup" on the local working copy from a command line to shut down any active SVN processes:
 
Open a Windows command prompt.
This can be done in Windows by typing in CMD in the search dialog after clicking on the Windows Start button, then select CMD.EXE.
Otherwise, hold down the windows start button and press R to open the Run dialog and enter CMD.
Once a command window opens, change the working directory of your project using the CD command.
If you copy the path from Windows Explorer, you can type in CD followed by a space.
Then right click and select Paste which will paste the path in.
Once In the project folder, type in: svn cleanup
Now, type Exit and attempt to recommit the files within Altium Designer.
 
Checking out a new copy from the svn then replacing the files with the already modified ones is another method to get these files committed.
 
The issue may be resolved by committing repo changes in Windows explorer. Then in Altium by right-clicking the project and clicking Version Control Refresh.
 
Here is documentation on Version Control:
https://www.altium.com/documentation/altium-designer/using-version-control-ad
https://www.altium.com/documentation/altium-designer/version-control-and-design-repositories-ad
 
And some other links that may be useful:
https://subversion.apache.org/
https://git-scm.com/
https://tortoisesvn.net/
 
Here is a reference to SVN command lines which may be helpful:
http://www.yolinux.com/TUTORIALS/Subversion.html
https://www.visualsvn.com/visualsvn/download/

 
Was this article helpful?
0
0
Found an issue with this document? Highlight the area, then use Ctrl+Enter to report it.

Contact Us

Contact our corporate or local offices directly.

We're sorry to hear the article wasn't helpful to you.
Could you take a moment to tell us why?
200 characters remaining
You are reporting an issue with the following selected text
and/or image within the active document: