ignore-unimportant option for folder-report?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MizuRyuu
    Visitor
    • Mar 2008
    • 5

    ignore-unimportant option for folder-report?

    I am trying to generate a report that list only the mismatch and none of the unimportant mismatches. I know taht for the file-report, there is the ignore-unimportant option, which isn't avaliable with the folder-report. I am wondering if there is any way to emulate the same function with the avaliable folder-report options?

    My code is below:

    #compare the text contents of the files
    criteria rules-based
    load %1 %2
    expand all
    select diff.files
    compare rules-based
    folder-report layout:side-by-side &
    options:display-mismatches-no-orphans,ignore-unimportant &
    output-to:"C:\log\Regression Logs\%3_%date%folder.html" &
    output-options:html-color
  • Chris
    Team Scooter
    • Oct 2007
    • 5538

    #2
    Re: ignore-unimportant option for folder-report?

    Sorry, there isn't an "ignore-unimportant" option for folder-report. Interactively there is the View|Ignore Unimportant Differences command in the Folder Viewer. This is a global setting. It can't be set from within a script, but if you turn it on in an interactive folder comparison it will affect scripts.
    Chris K Scooter Software

    Comment

    • Crazzy
      Visitor
      • Jul 2008
      • 3

      #3
      HI when use the scrip options:display-mismatches-no-orphans,ignore-unimportant
      the software send "INCORRECT PARAMETER" I dont need the orphans in this report please help me!!!

      #load next comparison
      load "C:\mau\link101\" "C:\mau\link102\"
      #expand all
      select all.files
      file-report layout:side-by-side options:display-mismatches output-to:C:\mau\%date%-101ini.html output-options:html-color
      Last edited by Crazzy; 15-Jul-2008, 05:17 PM.

      Comment

      • Aaron
        Team Scooter
        • Oct 2007
        • 16026

        #4
        I just tested this script and do not get the Incorrect Parameter error.

        If you use echo %date% on the command line, does it correctly output the date? Which OS are you using? Perhaps it is having difficulties with the space in %date%: try putting quotes around "c:\mau\%date%-101ini.html" or using a different, simple name for testing purposes (c:\mau\test.html).
        Aaron P Scooter Software

        Comment

        • Crazzy
          Visitor
          • Jul 2008
          • 3

          #5
          HI Aaron
          But the problem is when the try to ignore the orphans and using the scrip

          #load next comparison
          load "C:\mau\link101\" "C:\mau\link102\"
          #expand all
          select all.files
          file-report layout:side-by-side options:display-mismatches-no-orphans,ignore-unimportant output-to:C:\mau\%date%-101ini.html output-options:html-color

          Comment

          • Chris
            Team Scooter
            • Oct 2007
            • 5538

            #6
            "display-mismatches-no-orphans" isn't a valid option for the "file-report" command.

            "file-report" only supports the following filters: display-all, display-mismatches, display-context, or display-matches.

            This script should work correctly:
            #load next comparison
            load "C:\mau\link101\" "C:\mau\link102\"
            #expand all
            select all.files
            file-report layout:side-by-side options:display-mismatches,ignore-unimportant output-to:C:\mau\%date%-101ini.html output-options:html-color
            Chris K Scooter Software

            Comment

            • Crazzy
              Visitor
              • Jul 2008
              • 3

              #7
              Ok thanks.

              Comment

              Working...