DataObjects/Mtrack_repos.php
authorAlan Knowles <alan@roojs.com>
Mon, 10 Sep 2018 02:29:17 +0000 (10:29 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 10 Sep 2018 02:29:17 +0000 (10:29 +0800)
DataObjects/Mtrack_repos.php

index a420fb4..4dbb75f 100644 (file)
@@ -827,11 +827,20 @@ class Pman_MTrack_DataObjects_Mtrack_repos extends DB_DataObject
         $start = date('Y-m-d H:i:s', strtotime($notify->act_start . ' - 1 DAY'));
         $end = date('Y-m-d H:i:s', strtotime($notify->act_start));
         
+        $object = null;
+        $branch = null;
+        if ($imp->shortname == 'greengarden') {
+            $object = 'branch';
+            $branch = 'roojs';
+        }
+        
         //$this->impl()->debug=1;
-        $res = $this->impl()->history('.', array('since'=> '{'.$start.'}' , 'before' => '{'.$end .'}'));
+        $res = $this->impl()->history('.', array('since'=> '{'.$start.'}' , 'before' => '{'.$end .'}'), $object, $branch);
          
         // find the last rev the day before...
         
+        
+        
         $obj = $this->historyToSummary($res, $notify->act_start);
         if (!$obj) {
             return true;