php8
[web.mtrack] / MTrackWeb / Log.php
index 93cf82d..c1bfd73 100644 (file)
@@ -103,7 +103,10 @@ class MTrackWeb_Log extends MTrackWeb
         if (empty($hist)) {
             return; // an error conditon!?!
         }
-        $this->rev = $hist[0]->rev; 
+        $this->rev = $hist[0]->rev;
+        if (count($hist) < 100) {
+            $this->offset = 0;
+        }
         // code here...
         // repo has a 'release' branch, this should be used to track what needs 
         // merging from 'HEAD' to update it
@@ -132,12 +135,12 @@ class MTrackWeb_Log extends MTrackWeb
                 
             $last_day = $day;
             $M = array();
-            if (preg_match('/#([0-9]+)\s+/', $h->changelog, $M)) {
+           // if (preg_match('/#([0-9]+)\s+/', $h->changelog, $M)) {
                 
-                $h->ticket = MTrackIssue::loadByNSIdent($M[1]) ;
+           //     $h->ticket = MTrackIssue::loadByNSIdent($M[1]) ;
                 // ticket->status == closed == ok to commit to another branch...
                // echo '<PRE>'; print_r($h->ticket);
-            }
+           // }