} else {
require_once 'MTrack/CommitHookChangeEvent.php';
$c = new MTrackCommitHookChangeEvent;
- $c->rev = $bridge->getChangesetDescriptor();
- $c->changelog = $bridge->getCommitMessage();
- $c->changeby = $this->authUser->email; //???
+ $c->rev = $bridge->getChangesetDescriptor();
+ $c->changelog = $bridge->getCommitMessage();
+ $c->changeby = $this->authUser->email; //???
$c->changeby_id = $this->authUser->id; //???
- $c->ctime = time();
+ $c->ctime = time();
+ $c->fileActions = $bridge->fileActions;
$changes[] = $c;
}
return $changes;
// this might be run on multiple commits (big push...)
+ // in our system, we not only log commits that are against a
+ // ticket, but also ones that are not..
+
+
$files = $bridge->enumChangedOrModifiedFileNames();
$fqfiles = array();
// build up overall picture of what needs to be applied to tickets
$changes = $this->_getChanges($bridge);
+
+
+ print_R($changes);
+
// Deferred by tid
$deferred = array();
$me = $this->authUser;
+
+
+
foreach ($changes as $c) {
$tickets = array();
$log = $c->changelog;
}
if (count($tickets) == 0) {
$no_ticket[] = $c;
+
continue;
}
$this->checkVeto('postCommit', $log, $fqfiles, $actions);
}
- // defered is a list of actions...
+ // defered is a list of actions...
+ $this->no_ticket = $no_ticket;
$this->deferred = $deferred;
$this->spent_by_tid_by_user = $spent_by_tid_by_user;