}
return $ret;
+ }
+
+ function relatedCommit()
+ {
+ if (empty($this->rev)) {
+ return '';
+ }
+ // occurs on a ticket... when listing...
+ $mc = DB_DataObject::Factory('mtrack_change');
+ $mc->rev = $this->rev;
+ $mc->ontable = 'mtrack_repos';
+ if (!$mc->find(true)) {
+ return '';
+ }
+ // got the repo.. and the commit..
+
+ $repo = $mc->objectCached();
+
+ $res = $repo->impl()->history('.', 1, 'rev', $this->rev);
+ return $res;
+
+
+
}
{
$ret = $this->toArray();
$ret['audit'] = $this->cachedAuditToJSONArray();
+ $ret['commit'] = $this->relatedCommits();
+
return $ret;
}