[web-doc] master: fixed "RevTagProblem" problem

[email protected] (Nilgün Belma Bugüner) Mon, 24 Jan 2022 10:32:34 +0000
Newsgroups php.doc.web
Message-ID <[email protected]>
Author: Nilgün Belma Bugüner (nilgun)
Date: 2022-01-24T13:31:53+03:00

Commit: https://github.com/php/web-doc/commit/ccd7d7d19e7924ef1e7fe9e60df9c42f0596b072
Raw diff: https://github.com/php/web-doc/commit/ccd7d7d19e7924ef1e7fe9e60df9c42f0596b072.diff

fixed "RevTagProblem" problem

Changed paths:
  M  scripts/rev.php


Diff:

diff --git a/scripts/rev.php b/scripts/rev.php
index 2d21520..9cc13e8 100644
--- a/scripts/rev.php
+++ b/scripts/rev.php
@@ -511,7 +511,15 @@ function captureGitValues( & $output )
         {
             $SQL_BUFF .= "INSERT INTO Untranslated VALUES ($id, '$lang',
             '$en->name', $size);\n";
-        } else {
+        }
+        else if ($trFile->syncStatus == FileStatusEnum::RevTagProblem)
+        {
+            $SQL_BUFF .= "INSERT INTO translated VALUES ($id, '$lang',
+            '$en->name', '$trFile->hash', $size, '$trFile->maintainer',
+            '$trFile->completion', '$trFile->syncStatus', 0, 0);\n";
+        }
+        else
+        {
             $additions = $deletions = -1;
             if ( $en->hash == $trFile->hash ){
                 $trFile->syncStatus = FileStatusEnum::TranslatedOk;