KB: Fail to commit to SVN repo possibly due to file locking

Altium Designer Altium Designer
Starting in version: 18 Up to Current

[Why] Fail to commit to SVN repo possibly due to file locking [What] Commit fails with an error - Commit failed - Previous operation has not finished; run 'cleanup' if it was interrupted. [How] Run "C:\Program Files\Altium\[version]\Subversion Client\SVN cleanup"

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/

 
If you find an issue, select the text/image and pressCtrl + Enterto send us your feedback.
Was this article helpful?