SVN cleanup failed–previous operation have not finished workaround

Source: Internet
Author: User
Tags parent directory sqlite sqlite download svn

The first method: (primarily for older versions of SVN)


Transferred from: http://www.cnblogs.com/bicker/p/3312394.html

svn cleanup failed–previous operation have not finished workaround Today SVN encountered a headache, and the initial update failed because the files were locked. In the past, I did a clean-up operation on the parent directory, but the clean-up operation failed.

SVN cleanup failed–previous operation have not finished; Run cleanup if it was interrupted

Cleanup failure, the message of failure also called me cleanup, this is a dead loop ... To Google search to solve the problem, finally found an effective solution.

Usually, an SVN cleanup fixes most issues with Tortoise svn. However, I ran into an issue which caused me some grief.

The specific error I was seeing:

Previous operation have not finished; Run ' cleanup ' if it was interrupted

Solution:somehow, SVN is stuck on the previous operation. We need to remove the operation from it's ' Work queue '.

The data is stored in the Wc.db sqllite database in the offending folder.

1. Install sqllite (+ bit binary for Windows) from here

2. SQLite. Svn/wc.db "SELECT * from Work_queue"

The SELECT should show you your offending folder/file as part of the work queue. What's need to does is delete this item from the work queue.

3. SQLite. svn/wc.db "Delete from Work_queue"

That ' s it. Now, you can run cleanup Again–and it should work. Or you can proceed directly to the task you were doing before being prompted to run cleanup (adding a new file etc)

Also, Svn.exe (a command line tool) are part of the tortoise installer–but are unchecked for some reason. Just Run the installer again, choose ' Modify ' and select the ' command line tools '.

Simply put, by using SQLite to empty the previous work queue in SVN, this way you can do cleanup operation.

SQLite download Link The second way: for the new version of SVN


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.