Exporting changed only files with Subversion

Reading the referers of this website, I found that someone reached it querying a search engine for

subversion or svn export only changed files

This one-liner (that can be easily turned into a subversion hook) could do the task

for i in `svn log -r HEAD -v | grep "^   [MA]" | awk '{print $2}'`; do rsync -avR $i /basedir_of_your_export/; done

I’ve previously described here a slightly different problem.

Last update: 2008-08-18

Post a Comment

Your email is never shared. Required fields are marked *

*
*