起因
臨時接到任務幫另一個組開發功能模塊,主頁菜單跳轉邏輯需要相應變更。修改對應 jsp 文件後,提交 svn 報錯:CHECKOUT can only be performed on a version resource
原因
本地緩存的某種干擾。
解決辦法
- Eclipse 版:右鍵 項目文件夾–> Team --> Refresh/Cleanup
- 命令行版(推薦):
> svn cleanup /folder_name_to_cleanup
參考
- stack overflow:Cannot Commit to the SVN - CHECKOUT can only be performed on a version resource [at this time]
- 安徒生star:svn提交失敗 :“svn: E200007: Commit failed”
心得
- 關鍵時刻還得靠命令行;
- 不要忽視 Stack Overflow 的評論區。