OSSP CVS Repository

ossp - Check-in [3002]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 3002
Date: 2002-Dec-21 12:29:22 (local)
2002-Dec-21 11:29:22 (UTC)
User:rse
Branch:
Comment: Make sure that CVS diff handles are calculated correctly if files are added or deleted.
Tickets:
Inspections:
Files:
ossp-pkg/shiela/ChangeLog      1.17 -> 1.18     4 inserted, 0 deleted
ossp-pkg/shiela/shiela.pl      1.22 -> 1.23     2 inserted, 2 deleted

ossp-pkg/shiela/ChangeLog 1.17 -> 1.18

--- ChangeLog    2002/12/21 11:24:17     1.17
+++ ChangeLog    2002/12/21 11:29:22     1.18
@@ -11,6 +11,10 @@
 
   Changes between 0.9.2 and 0.9.3 (19-Aug-2002 to 21-Dec-2002):
 
+   *) Make sure that CVS diff handles are calculated correctly
+      if files are added or deleted.
+      [Ralf S. Engelschall]
+
    *) Fix incorrect use (and hence producing a warning for uninitialized
       variable) of variables in the writing of history files.
       [Ralf S. Engelschall]


ossp-pkg/shiela/shiela.pl 1.22 -> 1.23

--- shiela.pl    2002/12/21 11:24:17     1.22
+++ shiela.pl    2002/12/21 11:29:22     1.23
@@ -1789,8 +1789,8 @@
         my $Is_quoted = quotemeta($Is);
         $cvsdiff =~ s|\n<Diff\s+${Is_quoted}>\n(.+?\n)</Diff>|$e->{diff} = $1, ''|se;
         $IN->{file}->{$Is} = $e;
-        $handle_min = $ID if ($ID ne '' and (not defined($handle_min) or $handle_min > $ID));
-        $handle_max = $ID if ($ID ne '' and (not defined($handle_max) or $handle_max < $ID));
+        $handle_min = $ID if ($ID ne '' and $ID ne '0' and (not defined($handle_min) or $handle_min > $ID));
+        $handle_max = $ID if ($ID ne '' and $ID ne '0' and (not defined($handle_max) or $handle_max < $ID));
     }
     $IN->{handle} = '-NONE-';
     if (defined($handle_min) and defined($handle_max)) {

CVSTrac 2.0.1