PDA

View Full Version : Generating a report of two Subversion revisions


Chris
17-Oct-2007, 02:38 PM
Instructions for generating a file comparison report of two different revisions of the same Subversion project.

First, create a script to generate the file comparison report.
filter "-.svn\"
load %1 %2
expand all
select all.files
file-report layout:side-by-side options:ignore-unimportant,display-context output-to:%3 output-options:html-color

Then create a batch file that checks out the source from Subversion and calls the script.

svn checkout -r %2 %1 bcsvn1
svn checkout -r %3 %1 bcsvn2
"c:\program files\beyond compare 2\bc2.exe" /silent @bcreport.txt bcsvn1 bcsvn2 %4
rmdir /S /Q bcsvn1
rmdir /S /Q bcsvn2

To call the above script, use the following command line:
svncompare.bat svn://server/folder 123 345 report.html