今天同事提出這個問題,把解法記下來備忘
- Shell script one-liner (via Exporting changed only files with Subversion)
for i in `svn log -r HEAD -v | grep "^ [MA]" | awk '{print $2}'`; do rsync -avR $i /basedir_of_your_export/; done
- TortoiseSVN 解法
我也用 svn diff --summarize
寫了個 one-liner;
但是沒想到要用 rsync
,後半段長很醜。