svn cleanup failed–previous operation has not finished 解決方法


   今天svn遇到一個頭疼的問題,最開始更新的時候失敗了,因為有文件被鎖住了。按照以往的操作,我對父目錄進行clean up操作,但是clean up 操作也失敗了!

svn cleanup failed–previous operation has not finished; run cleanup if it was interrupted

  cleanup 失敗,失敗的信息里又叫我cleanup,這是一個死循環。。。到google搜索解決問題,最后終於找到一個有效的解決辦法。

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 has not finished; run 'cleanup' if it was interrupted

Solution: Somehow, svn is stuck on the previous operation. We need to remove this operation from it’s ‘work queue’.

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

1. Install sqllite (32 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 you need to do 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) is part of the Tortoise installer – but is unchecked for some reason. Just run the installer again, choose ‘modify’ and select the ‘command line tools’.

  簡單來説是,通過sqlite將svn中之前的工作隊列清空,這樣子就可以進行cleanup操作啦。

  sqlite下載鏈接


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM