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

patch by mgstahl@sonalysts.com r=tara
This commit is contained in:
timeless%mac.com 2002-06-27 04:31:28 +00:00
Родитель afa048f8e8
Коммит 3b012b4f21
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -109,7 +109,7 @@ sub ProcessOneFile {
($line =~ /^={75,80}$/)) {
# OK, we're done. Write it out.
if ($author && $datestr && $revision) {
$datestr =~ s!^(\d+)/(\d+/\d+)!$2/$1!;
$datestr =~ s!^(\d{4})/(\d+/\d+)!$2/$1!;
$date = str2time($datestr, "GMT");
if ($date >= $::StartFrom) {
AddToDatabase("C|$date|$author|$::Repository|$filehead|$filetail|$revision||$branch|+$pluscount|-$minuscount", $desc);