Changeset 36809


Ignore:
Timestamp:
2022-10-16T18:57:16+13:00 (19 months ago)
Author:
anupama
Message:

Accidentally committed changes that were just tabbing etc. Undoing commit 36808 following https://stackoverflow.com/questions/13330011/how-do-i-revert-an-svn-commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/diffcol/trunk/diffcol/cfgdiff.pm

    r36808 r36809  
    2121    if($cfg_file eq "build.cfg")
    2222    {
    23         my @temp_array = split (" ",$cfg_result);
    24         my @r_array =  grep {/\d+/} @temp_array;
     23    my @temp_array = split (" ",$cfg_result);
     24    my @r_array =  grep {/\d+/} @temp_array;
    2525
    26         if ($cfg_result eq "")
    27         {
    28             return "";
    29     #       return "Difference Report: These two collections are identical";
    30         }
    31         elsif ($r_array[1] > $r_array[2] && $temp_array[2] eq "builddate" && $temp_array[6] eq "builddate")
    32         {
    33             return "Difference Report: Using newer collection as model collection";
    34         }
    35         elsif ($r_array[1] < $r_array[2] && $temp_array[2] eq "builddate" && $temp_array[6] eq "builddate")
    36         {
    37             return "";
    38         }
    39         else
    40         {
    41             $cfg_result = &diffutil::GenerateOutput($cfg_result,"");
    42             return $cfg_result;
    43         }
     26    if ($cfg_result eq "")
     27    {
     28        return "";
     29#       return "Difference Report: These two collections are identical";
     30    }
     31    elsif ($r_array[1] > $r_array[2] && $temp_array[2] eq "builddate" && $temp_array[6] eq "builddate")
     32    {
     33        return "Difference Report: Using newer collection as model collection";
     34    }
     35    elsif ($r_array[1] < $r_array[2] && $temp_array[2] eq "builddate" && $temp_array[6] eq "builddate")
     36    {
     37        return "";
     38    }
     39    else
     40    {
     41        $cfg_result = &diffutil::GenerateOutput($cfg_result,"");
     42        return $cfg_result;
     43    }
    4444    }
    4545    elsif($cfg_file eq "collect.cfg")
    4646    {
    4747
    48         $cfg_result = &diffutil::GenerateOutput($cfg_result,"");
    49         if ($cfg_result eq "")
    50         {
    51             return "";
    52         }
    53         else
    54         {
    55             return "Difference Report:\n$cfg_result";
    56         }
     48    $cfg_result = &diffutil::GenerateOutput($cfg_result,"");
     49    if ($cfg_result eq "")
     50    {
     51        return "";
     52    }
     53    else
     54    {
     55        return "Difference Report:\n$cfg_result";
     56    }
    5757    }
    5858    else
    5959    {
    60         die "Error occour in cfgdiff::testcfg!!\n";
     60    die "Error occour in cfgdiff::testcfg!!\n";
    6161    }
    6262}
Note: See TracChangeset for help on using the changeset viewer.