svn given: [Previous operation has not finished; run 'cleanup' if it was interrupted] troubleshooting process

After completion of change today when more than a dozen types of documents to submit batch, the code submission process SVN server, the computer card sudden death of a General Assembly did not respond decisively to shut down and then restart the way of development tools, development tools restart, found that it is still prompt as uncommitted state, when submitting error execution, suggesting the need to perform clean up, decisively right to perform clean up, but also prompted a new error: "Previous operation has not finished; run 'cleanup' if it was interrupted", has since tried the project directory tree to update or submit a different directory, or even delete the item again check out, will appear the same problem;

       This time access to the relevant information that: local SVN client has an embedded DB (there are more than about 10 tables) SQLite, SVN managed to save a file type, project tree, the user progress of the operation and so on, so we can safely assume the above process we submit code, SVN client user code submitted abnormal termination operation, resulting in a table sqlite for recording (additions and deletions, etc.) of the data item a user operation to change too late Since we all subsequent operations for project a, project a will have priority check if there are outstanding operations from the table, if there is unfinished operations will prompt "Previous operation has not finished", along the way, if we find this table, this table and the related records deleted, it is not possible to solve this problem, found that access to relevant information:

In using svn projects, in the root directory of the project will have a .svn folder, click into structured as follows:

 

 

 

 

This is wc.db red box file, it is the SQLite database file, we can open it with SQLite3.exe, let's start to solve the problem:

1, first of all we go https://www.sqlite.org/download.html  next page, find

After downloading unzip, so as to obtain a catalog, which has a sqlite3.exe, we can use the command line to open the file;

2. Copy the sqlite3.exe to the root directory of the project, through wc.db the same folder, as follows:

3, the command line to switch the project root directory, and color types sqlite3 wc.db wc.db command to view the contents of files, .table wc.db command to view all the tables, wherein the table is used to record user WORK_QUEUE follows:

 

 

Command interpreter:

sqlite3 wc.db: wc.db expressed using sqlite3 tool to open a file, just as you use the same microsoft office word document open

.table: can be considered wc.db is a database file, which itself is a miniature database, .table command represents the mini-table view of all database

4, since it is a table, then we can perform CRUD sql can be employed to perform DELETE FROM WORD_QUEUE here; command to delete;

 

After the operation is complete at the 5,4, selected projects, the implementation of clean up operations svn, and then SVN project can be properly used;

 

Guess you like

Origin www.cnblogs.com/cwone/p/11697949.html