Search code examples
svntortoisesvn

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


Solution

  • 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