DataObjects/Mtrack_change.php
authorAlan Knowles <alan@roojs.com>
Mon, 31 Dec 2018 04:01:56 +0000 (12:01 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 31 Dec 2018 04:01:56 +0000 (12:01 +0800)
DataObjects/Mtrack_change.php

index 6dd5f46..f7cdc0b 100644 (file)
@@ -573,8 +573,19 @@ class Pman_MTrack_DataObjects_Mtrack_change extends DB_DataObject
         }
         // got the repo.. and the commit..
         
-        $repo = $mc->object();
+        $repo = $mc->objectCached();
+         
+        $object = null;
+        $branch = null;
+        if ($repo->impl()->shortname == 'greengarden') {
+            $object = 'branch';
+            $branch = 'roojs';
+        }
         
+        //$this->impl()->debug=1;
+        //print_r(array('since'=> '{'.$start.'}' , 'before' => '{'.$end .'}'));
+        $res = $repo->impl()->history('.', array('since'=> '{'.$start.'}' , 'before' => '{'.$end .'}'), $object, $branch);
+