An ant target that will: 1. Extract patch.tar.gz (tar xvzf patch.tar.gz) 2. Apply changes in patch.txt (svn patch patch.txt, requires svn client 1.7+) 3. Add new files and set svn properties to working copy (svn add (files from tar --list patch.tar.gz))
Added in r1751883. Copy patch.tar.gz file to svn working copy root (the patch tarball must be named patch.tar.gz and it must be located in the root) Usage: ant -f patch.xml apply Basically, what the script does is: $ tar xvzf patch.tar.gz $ svn patch patch.txt $ tar --list -f patch.tar.gz | grep --invert-match patch\.txt | xargs svn add