зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
afa048f8e8
Коммит
3b012b4f21
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче