MTrack/CommitChecker.php
authorAlan Knowles <alan@akbkhome.com>
Mon, 27 Jun 2011 10:54:08 +0000 (18:54 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 27 Jun 2011 10:54:08 +0000 (18:54 +0800)
MTrack/CommitChecker.php

index 6f8ead4..f8b14a1 100644 (file)
@@ -304,19 +304,31 @@ class MTrack_CommitChecker {
             }
             $deferred[$T->tid]['act'][] = $act;
 
-          }
+        
           //??? 
           $this->checkVeto('postCommit', $log, $fqfiles, $actions);
         }
         
         // defered is a list of actions...
         
+        $this->defered = $defered;
+        $this->spent_by_tid_by_user = $spent_by_tid_by_user;
+        
+        
+        return  true;
+    
+    /*    
+        $ret = array();
        // print_r($deferred);
         foreach ($deferred as $tid => $info) {
-          $T = $T_by_tid[$tid];
-
-          $log = join("\n\n", $info['comments']);
+            $T = $T_by_tid[$tid];
 
+            $log = join("\n\n", $info['comments']);
+            
+            
+          
+          
+          
           $CS = MTrackChangeset::begin("ticket:" . $T->tid, $log);
 
           if (isset($hashed[$T->tid])) {
@@ -366,6 +378,8 @@ class MTrack_CommitChecker {
         }
         $CS = MTrackChangeset::begin("repo:" . $this->repo->id, $log);
         $CS->commit();
+        
+        */
     }