Announcement

Collapse
No announcement yet.

File Comparison Problems

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • File Comparison Problems

    I have 2 directories. The left side is a revised/modified set of files while the right hand side is a complete application. I'd like to compare the modified directories/files to the complete application to determine what changed.

    My problem (or possibly my inexperience with BC) is if I do a folder compare, I get exactly what I want and it runs quickly. However, I also need the file reports as I need to report of the number of changed lines, delete lines, etc. The problem I have is it will compare all the files on the right as well. I only want the app to compare each file on the left to its counterpart on the right. This wouldn't necessarily be a problem but I have over 50K files on the right vs a change of possibly 50. It takes forever for it to run.
    Any suggestions will be greatly appreciated.
    thanks.

    Here is my command file:
    oad "C:\CLIENTS\SOURCECODE\DELTAS\EXPANDEDSOURCE\20090 506" "C:\Clients\SourceCode\MergedSourceCode"
    filter "-* 02.*;-.\.svn\;-.svn\;-.\ComparisonDirectory\"
    compare rules-based
    expand all
    select left.all
    folder-report layout:summary options:display-left-newer-orphans &
    &
    output-to:"foldercompare.dat"

    file-report layout:summary options:display-mismatches &
    output-to:"file-summary.dat"
    file-report layout:statistics options:display-mismatches &
    output-to:"file-stats.dat"

  • #2
    Hello,

    A couple of pointers:
    You can set the filter command above the load command to help load faster.
    You do not need compare rules-based
    You do not need to select for the folder-report, so you can logically move the selection closer to the file-report command it affects.

    Code:
    filter "-* 02.*;-.\.svn\;-.svn\;-.\ComparisonDirectory\"
    load "C:\CLIENTS\SOURCECODE\DELTAS\EXPANDEDSOURCE\20090 506" "C:\Clients\SourceCode\MergedSourceCode"
    expand all
    #Folder-Report section
    folder-report layout:summary options:display-left-newer-orphans &
    output-to:"foldercompare.dat"
    #File-Report section
    select left.orphan.files newer.files older.files diff.files
    file-report layout:summary options:display-mismatches &
    output-to:"file-summary.dat"
    file-report layout:statistics options:display-mismatches &
    output-to:"file-stats.dat"
    How does that work for you?
    Last edited by Aaron; 03-Dec-2009, 05:47 PM. Reason: edited
    Aaron P Scooter Software

    Comment

    Working...
    X