How to get a list of all files changed from a specific date in the past. Secondly, how to zip them all up.
Step 1
svn diff http://subversion-url –summarize -r {2012-03-01}:{2012-03-31} > /var/log.txt
What this does is list the files with full path changed between Mar 1 to Mar 21 and append all the filepaths into a file called log.txt
Step 2
cat /var/log.txt | while read a; do zip changes.zip $a; done
Use piping to get each line from log.txt into variable a and pass the value of a into the zip command. Each filename from log.txt is added to the file changes.zip
Leave a Reply