Today is a strange thing: SVN's local code tag suddenly lost, clean up also error

Source: Internet
Author: User

Today is a strange thing: SVN's local code tag suddenly lost, clean up also error

Think of this situation, you can first change the original directory to a name, re-check the code out, and then merge to submit updates, but this is too low

Baidu on the Internet, found two articles, provided a solution, my SVN version is 1.8, practice the method one, it worked! The method for SVN low version is available to you!

The solution is as follows:

Updating project code from SVN library, resulting in SVN state exception, update failed.

by looking up data, there are occasional similar problems caused by submitting code errors that need to be cleaned up under the problem path by executing the clean up command.
The error is as follows:the execution of the cleanup command in this directory fails with the hint "SVN cleanup failed–previous operation have not finished; Run cleanup if it is interrupted", the solution is as follows :method One:For svn version 1.7+, you need to clean up the queue data record in the Wc.db file under the root directory. SVN folder, the command reference is as follows:0. Copy the Sqlite3.exe file to the project folder root directory. 1. cmd command line is located under the project folder. 2. Execute sqlite3. svn/wc.db "SELECT * from Work_queue", the block SVN working record is queried. 3. Execute sqlite3. svn/wc.db "Delete from Work_queue" To remove the error data to allow clean up to work properly. 4. The root directory is executed with clean up to succeed. Method Two:SVN version 1.7 below, consider deleting all the lock files in this directory, the command reference is as follows:0. CD to the SVN project directory. 1. Execute del lock/q/s to delete the lock file. 2. The root directory is executed with clean up to succeed.
English Documents:

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 '.


sqlite3.exe Download sqlite3 Download

Reference:1. Svn-clean up failed to enter the specified file pathwebsite: http://blog.csdn.net/lfsfxy9/article/details/422974952. SVN cleanup failed–previous operation have not finished workaroundwebsite: http://www.cnblogs.com/bicker/p/3312394.html


Today is a strange thing: SVN's local code tag suddenly lost, clean up also 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.