OSSP CVS Repository

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

Check-in Number: 4628
Date: 2004-Jul-02 19:22:18 (local)
2004-Jul-02 17:22:18 (UTC)
User:rse
Branch:
Comment: Fix determination of the "handle" field under new CVS 1.12.x where ISO format dates are used in the output of "cvs log".
Tickets:
Inspections:
Files:
ossp-pkg/shiela/ChangeLog      1.49 -> 1.50     6 inserted, 0 deleted
ossp-pkg/shiela/shiela.pl      1.63 -> 1.64     1 inserted, 1 deleted

ossp-pkg/shiela/ChangeLog 1.49 -> 1.50

--- ChangeLog    2004/06/27 07:44:03     1.49
+++ ChangeLog    2004/07/02 17:22:18     1.50
@@ -9,6 +9,12 @@
 
   ChangeLog
 
+  Changes between 1.1.3 and 1.1.4 (27-Jun-2004 to 02-Jul-2004):
+
+   *) Fix determination of the "handle" field under new CVS 1.12.x
+      where ISO format dates are used in the output of "cvs log".
+      [Ralf S. Engelschall]
+
   Changes between 1.1.2 and 1.1.3 (10-May-2004 to 27-Jun-2004):
 
    *) Fix determination of the line counts in the "Changes" field


ossp-pkg/shiela/shiela.pl 1.63 -> 1.64

--- shiela.pl    2004/06/27 07:45:50     1.63
+++ shiela.pl    2004/07/02 17:22:18     1.64
@@ -1662,7 +1662,7 @@
 
         #   determine commit date
         my $ID = 0;
-        if ($rcslog =~ m|\ndate:\s+(\d\d\d\d)/(\d\d)/(\d\d)\s+(\d\d):(\d\d):(\d\d);|s) {
+        if ($rcslog =~ m|\ndate:\s+(\d\d\d\d)[/-](\d\d)[/-](\d\d)\s+(\d\d):(\d\d):(\d\d)(?:\s+[+-]?\d+)?;|s) {
             my ($Y,$M,$D,$h,$m,$s) = ($1,$2,$3,$4,$5,$6);
             $ID = POSIX::mktime($s, $m, $h, $D, $M-1, $Y-1900);
         }

CVSTrac 2.0.1