SVN "Previous operation have not finished; Solution to run ' cleanup ' if it was interrupted "error

Source: Internet
Author: User

Source

Today, I ran into a depressed problem, SVN executes the clean up command times wrong "Previous operation have not finished; Run ' cleanup ' if it was interrupted ". Whether you go to that parent's directory to execute "clean up", it's the same error. When executing cleanup, prompt to cleanup. Looks like it's going into a dead loop.

It is possible to make some changes frequently, update or submit the file when it is opened, causing SVN to strike. This should also be an SVN bug. A similar situation has actually been encountered before. Before all is the diagram convenient, the entire SVN checkout's main directory is deleted, re-checkout to solve. But as the project progresses, more and more files are being updated. This problem will be solved sooner or later, let's try it. The key to the problem seems to need to find the place where the deadlock is unlocked. I looked up the information on the Internet. SVN's operation is stored in the "Work queue". The "Work queue" is in the Work_queue table of the embedded database wc.db. Look at what's put in the Work_queue table and do the processing.

1. Embedded database is generally used for lightweight management of SQLite. Online can be down to Sqlite-shell-win32-x86:sqlite3.exe

2. To facilitate command line execution, place the Sqlite3.exe under the SVN project's home directory, and the. SVN directory sibling.

3. Execute sqlite3. svn/wc.db "SELECT * from Work_queue". See there are 4 records. Just some of the actions I've just performed.

226539| (sync-file-flags 93 directory name file name)

226540| (File-remove. svn/tmp/svn-7b43c232)

226541| (sync-file-flags directory name file name)

226542| (File-remove. svn/tmp/svn-7b48224e)

4. Execute sqlite3. svn/wc.db "Delete from Work_queue". Empty the queue.

5. Execute sqlite3. svn/wc.db "SELECT * from Work_queue". Confirm that the queue has been emptied and that there are no records showing that the instructions have been emptied.

6. Finally try again to see if you can clean up. It sure did succeed.

There is another way for others to recommend, but because this success has not tried again. is to execute the Cleanup SVN project directory using the command line tool Svn.exe. Because this command-line tool is not installed by default, you need to start the installer, select "Modify" and choose "Command line tool". It is estimated that the actual effect of this command is similar to the one above. But it should be more powerful than the right-click menu of the graphical interface. Interested to try.

By the way, SQLite is a very common embedded database, which is a db file. such as mobile phone QQ and other such software will be built into a database for multiple data management.

SVN "Previous operation have not finished; Run ' cleanup ' if it is interrupted ' workaround for error

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.