svn:"Update item to this version"、"Revert to this version"及"Revert changes from this version"詳細說明

背景:svn

今天在svn分支上作了一些課題性研究,發現當前的環境版本不穩定,測試

和領導研究後決定還原到前面的版本以繼續進行課題。this

問題:.net

所以遇到了問題,是應該選擇「Update item to this version」,「Revert to this version」,仍是「Revert changes from this version」功能,blog

我仔細的研究了一下。it

結果:io

經測試分析,這三種對svn的操做細分以下:date

「Update item to this version」:回退文件的內容和版本到指定的版本A,文件內容與版本A一致,此時文件的版本也爲A,可是沒法上傳文件。文件

「Revert to this version」:只是回退文件的內容到指定版本A,文件版本仍是最新版本,此時文件會提示有所更改,能夠上傳,而且會在最新的版本號上加1,造成新的版本。上傳文件

「Revert changes from this version」:還原對應版本所做的改變,會將所指定的版本所做的修改直接抹殺,能夠對多個版本操做,注意極可能會出現衝突,須要手動解決。

具體你們也能夠本身測試一下。

可參照網址:https://blog.csdn.net/albertsh/article/details/52964037

若有問題,歡迎指正

相關文章
相關標籤/搜索