Generating a report of two Subversion revisions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Chris
    Team Scooter
    • Oct 2007
    • 5538

    Generating a report of two Subversion revisions

    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.
    Code:
    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.

    Code:
    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:
    Code:
    svncompare.bat svn://server/folder 123 345 report.html
    Chris K Scooter Software
Working...