Scenario:
- SVN Repo #1 with application code base
- SVN Repo #2 with previously compiled milestones
I need an ANT build script which can do the following:
- Export the code base from SVN repo #1 (done)
- Compile the exported code base (done)
- Check out the code base from SVN repo #2 (done)
- Compare the compiled/exported code base from SVN repo #1 to the working copy from SVN repo #2 a. If any files have been added in SVN repo #1, they need to be added to the working copy b. If any files have been updated in SVN repo #1, they overwrite what is in the working copy c. If any files have been removed from SVN repo #2, they need to be deleted from the working copy
- Check in the updated code base into SVN repo #2
Step #4 is where I am running into issues. I believe I can accomplish 4a and 4b by just copying the compiled/exported code base from SVN repo #1 over the working copy that has been checked out from SVN repo #2. I am not sure how do do the diff between the two code bases to determine which files need to be deleted from the SVN repo #2 working copy though. I know I can use SVNANT delete to remove the files, but how do I build the fileset?