SVN: How to get list of files changed between two revisions

公司在更新客戶的程式碼時慣例上是只傳送有變動的程式碼。

老實說我覺得還挺麻煩的,不是每個 SVN Client 都有提供這方面的功能,目前我還只會手動處理,希望能有更方便的方法匯出特定版本區間的變動檔案。

列出 x 與 y 兩個版本區間的變動檔案列表

svn diff -r x:y --summarize

打包變動過的檔案

zip patch_vXXX.zip `svn diff -r x:y --summarize . | grep . | awk '{print $2}' | grep -E -v '^\.$'`

列出資料夾裡的所有檔案

find . -type f

計算檔案數量

find . -type f | wc -l

Posted

in

,

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *