Changeset 320

Show
Ignore:
Timestamp:
07/09/2007 06:29:06 PM
Author:
luedi
Message:

#60: give a clue in the comment about the direction of the UNPIN/PIN situation. If we are comming from a higher version to a lower version, the comment will be prepended with a "reverted changes for: " message

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/script/vss2svn.pl

    r319 r320  
    912912         
    913913        my $sql2; 
     914        my $prefix; 
    914915 
    915916        # PIN only 
     
    923924                    . '      AND timestamp<=' . $row->{timestamp} 
    924925                    . ' ORDER BY version DESC'; 
     926            $prefix = "reverted changes for: \n"; 
    925927        } 
    926928         
     
    937939        } 
    938940 
    939         # PIN/UNPIN  
    940         if (    defined $row->{version}     # no PIN version number 
     941        # UNPIN/PIN  
     942        if (    defined $row->{version}     # PIN version number 
    941943            &&  defined $row->{info}) {     # UNPIN version number 
    942944            $sql2 = 'SELECT * FROM PhysicalAction' 
     
    946948                    . '      AND version>' . $row->{info} 
    947949                    . '      AND version<=' . $row->{version} 
    948                     . ' ORDER BY version ASC'; 
     950                    . ' ORDER BY version '; 
     951                     
     952            if ($row->{info} > $row->{version}) { 
     953                $sql2 .= "DESC"; 
     954                $prefix = "reverted changes for: \n"; 
     955            } 
     956            else { 
     957                $sql2 .= "ASC"; 
     958            } 
     959 
    949960        } 
    950961 
     
    969980         
    970981        if (defined $comment && !defined $row->{comment}) { 
     982            $comment = $prefix . $comment if defined $prefix; 
    971983            $comment =~ s/"/""/g; 
    972984            my $sql3 = 'UPDATE PhysicalAction SET comment="' . $comment . '" WHERE action_id = ' . $row->{action_id}; 
     
    12851297trunk dirk   : $gCfg{trunkdir} 
    12861298label dir    : $gCfg{labeldir} 
    1287 label mapper : $gCfg{labelmapper} 
     1299label mapper : $gCfg{labelmapper} if defined $gCfg{labelmapper} 
    12881300 
    12891301VSS2SVN ver  : $VERSION 

These ads are automatically generated by Google based on the content of this page. Revenue from these ads helps to pay for hosting fees of this site; however, these ads do not constitute an endorsement by PumaCode.org.