2013-09-27 55 views
0

我做了一個SVN更新,最終導致一個處於衝突狀態的文件和一些合併。但是對於我的兩個文件,它完全刪除了我的版本的文件,並用版本庫中的版本替換它們。沒有* .mine文件或類似的東西。我記得看到有關恢復2個文件的消息,這是我失去了我的變化。SVN更新後TortoiseSVN丟失了本地更改

+0

你的問題是什麼? – vcsjones

回答

0
  1. 對於有衝突的文件:

    Open it in difference/compare window or notepad & see the >>>>mine and 
    >>>>revision markers in your code. Keep the necesaary one and remove the other 
    along with the markers >>>>>mine and >>>>>>revision. Now right click on your 
    file ,tortiosesvn-> Resolved Conflicts and click ok and checkin the file. 
    Your fileis now update,merged and also committed to svn without any conflict. 
    
  2. 失去的變化 - Right click on the file Show Log -> See the last revision and get it.

我用烏龜SVN客戶端的Windows和步驟是從只。它可能不適用於其他人或可能在現有版本中有所不同

+0

我在日誌中尋找丟失的變化,它不在那裏。我相信那些只顯示以前承諾的變化。 – user994165

+0

然後試一試UNDO也不要保存你正在工作的解決方案/工作區,關閉它。重新打開並查看它是否有效 –

+0

承認,在上下文菜單中看不到撤消選項。那應該在「TortoiseSVN」下? – user994165

0

我懷疑這是TortoiseSVN中的一個錯誤。我的團隊中的其他成員也遇到了同樣的問題,並且在出現網絡問題時似乎會發生。