1. 程式人生 > >SVN Update Error Please execute the 'Cleanup' command 解決方案

SVN Update Error Please execute the 'Cleanup' command 解決方案

問題 - SVN Update Error: Please execute the 'Cleanup' command

詳細描述

使用SVN更新檔案時,會碰到失敗的情況(可能因為上次拉取被強制中斷等操作),提示需要cleanup ,但是你clean up時又提示資料夾已經locked,這時候你又去release lock,但是還是失敗,提示 Please execute the 'Cleanup' command.(TMD真難用)

<!--more-->

解決方案

顯然這個無法操作因為是svn檔案被鎖需要釋放,但是手動釋放又行不通,so

  1. 需要進入被鎖定資料夾所在的svn根目錄,然後將隱藏檔案設定為可見

  2. 找到.svn資料夾,用資料庫管理工具如navicat,datagrip等ide連結wc.db,這是一個sqlite資料庫,找到WC_LOCK表

  3. 進去將被鎖定的記錄刪除掉並提交更新到資料庫。

  4. 再去更新程式碼或檔案時候就ok