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

Modified by on Jun 11, 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.

Applicable Versions: All Versions

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?
You are reporting an issue with the following selected text
and/or image within the active document:
ALTIUM DESIGNER FREE TRIAL
Altium Designer Free Trial
Let’s get started. First off, are you or your organization already using Altium Designer?

If would like to speak with a representative, please contact your local Altium office.
Copyright © 2019 Altium Limited

In that case, why do you need an evaluation license?

If would like to speak with a representative, please contact your local Altium office.
Copyright © 2019 Altium Limited

Got it. You actually don’t need an evaluation license for that.

Click the button below to download the latest Altium Designer installer.

Download Altium Designer Installer

If would like to speak with a representative, please contact your local Altium office.
Copyright © 2019 Altium Limited

Please fill out the form below to get a quote for a new seat of Altium Designer.

By clicking “Get Your Free Trial”, you are agreeing to our Privacy Policy.
You may receive communications from Altium and can change your notification preferences at any time.

If you are on Altium Subscription, you don’t need an evaluation license.

If you are not an active Altium Subscription member, please fill out the form below to get your free trial.

By clicking “Get Your Free Trial”, you are agreeing to our Privacy Policy.
You may receive communications from Altium and can change your notification preferences at any time.

Why are you looking to evaluate Altium Designer?

If would like to speak with a representative, please contact your local Altium office.
Copyright © 2019 Altium Limited

You came to the right place! Please fill out the form below to get your free trial started.

By clicking “Get Your Free Trial”, you are agreeing to our Privacy Policy.
You may receive communications from Altium and can change your notification preferences at any time.

Great News!

Valid students can get their very own 6-month Altium Designer Student License for FREE! Just fill out the form below to request your Student License today.

By clicking “Get Your Free Trial”, you are agreeing to our Privacy Policy.
You may receive communications from Altium and can change your notification preferences at any time.

Got it. You can download a free Altium Designer Viewer license which is valid for a 6 months.

Please fill out the form below to request one.

By clicking “Get Your Free Trial”, you are agreeing to our Privacy Policy.
You may receive communications from Altium and can change your notification preferences at any time.

That’s great! Making things is awesome. We have the perfect program for you.

Upverter is a free community-driven platform designed specifically to meet the needs of makers like you.

Click here to give it a try!

If would like to speak with a representative, please contact your local Altium office.
Copyright © 2019 Altium Limited

Got it. You can download a free Altium Designer Viewer license which is valid for a 6 months.

Please fill out the form below to request one.

By clicking “Get Your Free Trial”, you are agreeing to our Privacy Policy.
You may receive communications from Altium and can change your notification preferences at any time.