Closed Bug 32239 Opened 24 years ago Closed 22 years ago

rebuildcvshistory fails on files whose rlog date are in mm/dd/yyyy format.

Categories

(Webtools Graveyard :: Bonsai, defect, P3)

Sun
Solaris

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mgstahl, Assigned: tara)

References

Details

Attachments

(1 file)

rebuildcvshistory fails on files whose rlog date are in mm/dd/yyyy format.

Output from command:

Rebuilding entire checkin history in Bridge, (`Bridge' tree) ...
Doing directories: bridge ...
/home/cms/local/cvsroot/bridge/bin/1st,v
Use of uninitialized value at
        /opt/mozilla/webtools/bonsai/rebuildcvshistory.cgi line 115,  chunk 29 
(#1)
    
    (W) An undefined value was used as if it were already defined.  It was
    interpreted as a "" or a 0, but maybe it was a mistake.  To suppress this
    warning assign an initial value to your variables.

Synopsis:

Line 112 attempts to convert dates in yyyy/mm/dd format to mm/dd/yyyy format. 
However, if the date is already in the mm/dd/yyyy format, line 112 converts it 
to dd/yyyy/mm, which is not a valid date, so str2time returns a null date.

Proposed Revision:

# diff rebuildcvshistory.cgi /opt/mozilla/webtools/bonsai/rebuildcvshistory.cgi
1c1
> #!/usr/local/bin/perl -w
112c112
<                                    $datestr =~ s!^(\d+)/(\d+/\d+)!$2/$1!;
---
>                                    $datestr =~ s!^(\d{4})/(\d+/\d+)!$2/$1!;

This solved the issue on our system
tara@tequilarista.org is the new owner of Bugzilla and Bonsai.  (For details,
see my posting in netscape.public.mozilla.webtools,
news://news.mozilla.org/38F5D90D.F40E8C1A%40geocast.com .)
Assignee: terry → tara
This bug has not been touched for more than nine months. In most cases, that 
means it has "slipped through the net". Please could the owner take a moment to 
add a comment to the bug with current status, and/or close it.

Thank you :-)

Gerv
Keywords: patch
Status: NEW → ASSIGNED
Attached patch suggested patchSplinter Review
QA Contact: matty → timeless
Blocks: bonsai-test
Attachment #86021 - Flags: review+
checked in
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: