Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Svn error "Previous operation has not finished"

This morning i was committing several items to a svn repository. During the commit operation my operating system crashed and now all svn commands (Including clean up) ends up with the same error.

Previous operation has not finished; run 'cleanup' if it was interrupted Please execute the 'Cleanup' command." 

I dont get other errors like Subversion stuck due to "previous operation has not finished"? and as the repository is very i big i dont want to checkout everything again like suggested here: Issues with previous operation not finishing

like image 838
Sigurd V Avatar asked Mar 28 '14 14:03

Sigurd V


People also ask

How do you check if Tortoise SVN command line is installed?

Locate TortoiseSVN and click on it. Select "Change" from the options available. Refer to this image for further steps. After completion of the command line client tools, open a command prompt and type svn help to check the successful install.


1 Answers

Actually just found the answer to my question by looking here

It seems that svn was stuck in the old operation. All of these operations are stored in the database wc.db in the .svn folder.

By downloading SQLite to my checkout directory and running

sqlite3.exe .svn/wc.db "select * from work_queue" 

from cmd

i got a list of all pending operations. These operations are the ones "not finished" then by running

sqlite3.exe .svn/wc.db "delete from work_queue" 

all of these pending operations are deleted and i can commit again. No need for a re checkout or anything

like image 62
Sigurd V Avatar answered Sep 21 '22 14:09

Sigurd V