1. 程式人生 > >Commit failed with error SVN:"xxx.x" is scheduled for addition, but is missing

Commit failed with error SVN:"xxx.x" is scheduled for addition, but is missing

刪除資料夾後點commit提交,但是報錯,報錯內容如下:

提示 "Commit failed with error
0 files committed, 3338 files failed to commit: 111 svn: E155010: Commit failed (details follow): svn: E155010: 'F:\..\..\xx.xx' is scheduled for addition, but is missing"


原因:之前用SVN提交過的檔案,被標記為"add"狀態,等待被加入到倉庫。若此時你把這個檔案刪除了,SVN提交的時候還是會嘗試提交這個檔案,雖然它的狀態已經是 "missing"了。



解決辦法:在AndroidStudio中,選中那個檔案的上一級目錄,右鍵選擇Subversion,點選Revert。這樣就告訴SVN把這個檔案退回到之前的狀態 "unversioned",也就是不對這個檔案做任何修改,然後再提交就可以了